cancel
Showing results for 
Search instead for 
Did you mean: 

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

Ricardo1
Associate II

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 🙂

3 REPLIES 3
S.Ma
Principal

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

Ricardo1
Associate II

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
Principal II

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