2006-01-20 05:21 PM
2006-01-20 05:21 PM
i want to use both TOF interrupt and ICA interrupt of TIM1,but I found that I can't start the timer,why?
TIM_Init ( TIM1 ); TIM_ITConfig(TIM1,TIM_TO_IT | TIM_ICA_IT ,ENABLE); TIM_ClockSourceConfig(TIM1,TIM_INTERNAL); TIM_PrescalerConfig ( TIM1, 0x00 ); TIM_PWMIModeConfig ( TIM1, TIM_RISING ); ~~~~~~~~~the program stop here~~~~~~ TIM_CounterConfig ( TIM1, TIM_START );