We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
lol