cancel
Showing results for 
Search instead for 
Did you mean: 

why there is no filtering of timer inputs when in encoder mode ?

mehmet.karakaya
Associate III
Posted on June 21, 2012 at 20:41

hello  

can anybody tell me

which ccmr and smcr bits to set for filtering inputs in timer encoder mode

I tried below setting but no success  (stm32F103)

TIM_EncoderInterfaceConfig(TIM4,TIM_EncoderMode_TI12,TIM_ICPolarity_Rising,TIM_ICPolarity_Rising );

TIM4->SMCR|=0x0f00;

TIM4->CCMR1 = 0xF1F1;

I mean things dont get better with above setting

0 REPLIES 0