AnsweredAssumed Answered

Changing counting direction on encoder interface

Question asked by kasapoglu.orkun.001 on Mar 1, 2013
Latest reply on Mar 8, 2013 by kasapoglu.orkun.001
Hi all. I want to measure length between 2 pressure pistons but I don't know can i change the directon with changing IC1 edge align mode or IC2 edge align mode on x4 resolution mode for example
1-) TIM_EncoderInterfaceConfig(TIM2, TIM_EncoderMode_TI12, TIM_ICPolarityRising, TIM_ICPolarityRising);
2-)TIM_EncoderInterfaceConfig(TIM2, TIM_EncoderMode_TI12, TIM_ICPolarityFalling, TIM_ICPolarityRising);  or  TIM_EncoderInterfaceConfig(TIM2, TIM_EncoderMode_TI12, TIM_ICPolarityRising, TIM_ICPolarityFalling);

while first selection is counting up/down,can one of second selection count down/up??
if this is not useful how can i change directon during the encoder timer is counting??

Outcomes