Skip to main content
saicflying
Associate II
January 21, 2006
Question

Problem of the Timer interrupt

  • January 21, 2006
  • 1 reply
  • 545 views
Posted on January 21, 2006 at 02:21

Problem of the Timer interrupt

This topic has been closed for replies.

1 reply

saicflying
Associate II
January 21, 2006
Posted on January 21, 2006 at 02:21

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 );