2012-06-21 11:41 AM
hello
can anybody tell mewhich 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