2016-11-22 12:42 PM
Hello,
I'm trying to get the encoder interface operational on the STM32F7 Discovery Board. Unfortunately, there seems to be a lack-of-pins problem. It seems like the easiest timer to use is TIM1. Channel 1 is on the arduino header, so that's good. However, the second channel is on PA9...which appears to be on the normal micro USB slot. I'm not using that USB for anything. However, I'm also not able to figure out whether there's something in the way that will mess things up. Does anyone have experience with getting the encoder interface up and running on this board? I don't want to start with green wire fixes unless I'm 100% they're needed. #encoder-interface #stm32f72016-11-29 07:02 AM
Hello,
You can refer to your reference manual and the datasheet of your product to be able to identify the pins assignment (free/usable pins)Have a look to this , it may help you on TIM configuration in encoder mode.The STM32CubeF7 does not contains an encoder example. So, you can inspire from another STM32Cube package to develop your application, like
which has the ''TIM_Encoder'' example at this path: STM32Cube_FW_F4_V1.14.0\Projects\STM324xG_EVAL\Examples\TIM\TIM_EncoderRegards2016-11-29 08:00 AM
The F7 Disco, while an impressive demonstrator of the built-in facilities, is a poor general-purpose experimenting platform, as you too have found out. The Nucleos are better in this regard, for the higher-end STM32s.
As far as I can see in the Disco's UM, you have PC6 and PC7 available on the Arduino connector, providing TIM3_CH1 and TIM3_CH2. JW