Skip to main content
Ricardo1
Associate
February 8, 2020
Question

Is there a way to specify that a given timer channel needs to use a 5V tolerant pin (FT)?

  • February 8, 2020
  • 3 replies
  • 1141 views

I am using an STM32G4 and working in STM32CubeIDE with the MX interface.

The software is great about assigning pins to allow for all of my functionality but I do not see a way to specify this. I am using TIM 1,3,4,8 for encoder counting with CH1&2 on each. I want to be able to handle 5V and 3.3V quadrature encoders on these encoder counting timers. They all have 5V tolerant (FT) pin options but the default selections are not always the FT option. Any ideas on how to have the software do the pin selection in this way would be appreciated!

Thanks :)

This topic has been closed for replies.

3 replies

S.Ma
Principal
February 8, 2020

The 5V tolerant is a HW fixed feature. Usually, pins with ADC feature are only 3.3V, the rest being 5V tolerant.

Ricardo1
Ricardo1Author
Associate
February 10, 2020

Right. So my problem is that CubeMX is selecting some pins that are not 5V tolerant - they are TT. I want to limit it to only select FT pins. Is that possible?

Uwe Bonnes
Chief
February 11, 2020

Look at the pinout table of the datasheet . In one line you find if a pin is FT and has the needed timer functionality