I am using STM8S105 with C1 and C2 pull up no it config and TIM1 for encoder mode. TIM1 counter counts from 0 to 1 and back to 0. can anyone please help. Thanks
Timer 1 inittalization code is below: TIM1_TimeBaseInit(10, TIM1_COUNTERMODE_CENTERALIGNED1, 1000, 1); TIM1_ICInit(TIM1_CHANNEL_1,TIM1_ICPOLARITY_FALLING ,TIM1_ICSELECTION_DIRECTTI ,TIM1_ICPSC_DIV1,0); TIM1_ICInit(TIM1_CHANNEL_2,TIM1_ICPOLARITY_FALLI...