2014-06-20 05:21 AM
Can TIM2 or TIM3 be attached to a quadrature encoder and up/down count? The data sheet says yes, but the reference manual is vague. Has anyone attached an encoder to these Timers yet?
#quadrature-encoder-rotary-tim3 #stm8l-tim2-/-tim32014-10-29 05:52 AM
Did you ever get a reply to this question as I too was wondering the same thing!? However, from what I've seen built in support for quadrature encoders via timers appears to only exist in the 32 bit devices.
Thanks, Ian2014-10-30 02:49 AM
I think the manual is quite clear, only advanced timer TIM1 has encoder modes.
The relevant settings are marked as reserved in general purpose timers(SMCR_SMS).I suppose it's a bug in datasheet.2015-01-06 01:08 AM
Hello,
Does anyone know if there is any example code showing how to use a detent rotary encoder with TIM1 in encoder mode? Thanks, Ian