STM8stim1计频问题
我想用stm8s的外部时钟源模式2进行计频,我调用了tim1的库函数,我从外部引脚(AIN3/PB3)发信号,TIM1使终不计数,也没进中断,有人能解决一下吗?或都有人用过该模试的发个源码上来。源程序如下:TIM1_DeInit();TIM1_ETRClockMode2Config(TIM1_EXTTRGPSC_DIV4,TIM1_EXTTRGPOLARITY_INVERTED,1);TIM1_TimeBaseInit(0,TIM1_COUNTERMODE_UP,100,