Posted on November 05, 2012 at 09:03I want capture signal like
![0690X00000604zHQAQ.png 0690X00000604zHQAQ.png](/t5/image/serverpage/image-id/48711i2B7B3AF992064992/image-size/large?v=v2&px=999)
I want capture how many times yellow signal is high on the falling edge of blue signal in 1 second
my code is
TIM1_TimeBaseInit(0, TIM1_CounterMode_Up, 50000, 0);
TIM1_EncoderInterfaceConfig(TIM1_EncoderMode_TI1,
TIM1_ICPolarity_Rising,TIM1_ICPolarity_Falling);
TIM1_Cmd(ENABLE);
but the counter always 0 , after 1 second
Is there any guide for use TIM1 encoder interface mode.
#stm8-tim1-encoder-interface-mode