2020-02-07 07:00 PM
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 :)
2020-02-08 12:44 AM
The 5V tolerant is a HW fixed feature. Usually, pins with ADC feature are only 3.3V, the rest being 5V tolerant.
2020-02-10 11:49 AM
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?
2020-02-11 01:13 AM
Look at the pinout table of the datasheet . In one line you find if a pin is FT and has the needed timer functionality