2016-06-15 11:09 PM
Hi all.
In our system we use one of the general purpose timers in ''Encoder interface mode'', that means, the encoder clocks the timer counter to count the pulses. I found this in the documentation:''Encoder interface mode acts simply as an external clock with direction selection''
So my question is - what is the max frequency of incoming PWM (from the encoder) That the timer counter would still work? Does that means that the timer internal clock (sourced by sysclk) does not affect this mode?? Thank all for replying... #timer #encoder2016-06-16 12:15 AM
The STM32 timers are fully synchronous, including sampling their inputs, so the clock coming from RCC as you mentioned still limits the maximum input frequency. In encoder mode, the edges must always be at least one clock apart.
JW