Author Topic: STM nuclo32-l32kc Timer1 internal clock and GPIO on pin PA12  (Read 554 times)

0 Members and 1 Guest are viewing this topic.

Offline conducteurTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: be
Hi

I'm learning STM32 microcontrollers, and there's something that I don't really understand.
It seems that I can't assign Timer1 with an internal clock because I need PA12  as GPIO Output? 

I tried to find more details in the datasheets, but did not find it. I don't see why a GPIO pin blocks the use of this timer?

I want to use ch1 for input capture, but this is on a different pin then PA12 (PA8).

 

Offline gamalot

  • Super Contributor
  • ***
  • Posts: 1306
  • Country: au
  • Correct my English
    • Youtube
Re: STM nuclo32-l32kc Timer1 internal clock and GPIO on pin PA12
« Reply #1 on: May 06, 2021, 03:48:52 pm »
No, the internal clock will definitely not conflict with a GPIO pin. There will be conflicts only when you select an external clock source. For example, selecting ETR2 will conflict with PA12 set to GPIO output mode.

Offline conducteurTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: be
Re: STM nuclo32-l32kc Timer1 internal clock and GPIO on pin PA12
« Reply #2 on: May 06, 2021, 03:57:42 pm »
Oh thank you. I misunderstood the warning. It's seems logical that it only relates to the options in pink.....

thank you!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf