Question
Timer Encoder Interface
Posted on December 12, 2014 at 15:54
Hi,
I'm trying to read an encoder using the encoder interface provided by the STM32F3Discovery board. I've set up the peripherals using CubeMX and connected the encoder to the input pins (tried with timer 1 and 2), but the CNT register doesn't seem to get updated.I tried declaring the same pins as GPIO (Input mode) and blinking leds when the input is 1, and they seem to work properly (so I guess the encoder is fine).Can anybody tell me what's going on? Do I need to specificate other parameters/enable interrupts/DMA/other?Thanks #cubemx #i-can''t-help-you-with-that