This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Output compare interrupt

i would like to use the output compare 1 Interrupt. What do I have to add (or remove) to following code, so that it works?

   TIM_InitStructure.TIM_Mode = TIM_OCM_CHANNEL_1;
   TIM_InitStructure.TIM_OC1_Modes = TIM_TIMING;
   TIM_InitStructure.TIM_Clock_Source =TIM_CLK_EXTERNAL;
   TIM_InitStructure.TIM_Pulse_Length_1 = 25000;

   TIM_Init (TIM1, &TIM_InitStructure);
   TIM_CounterCmd(TIM1, TIM_START);

   VIC0->VAiR[5]   = (unsigned int)TIM1_IRQ_Handler;

kind regards
don

0