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.
Hi, following code starts the timer (checked with debugger TIM0->CNTR) but does not lead to an interrupt; using STR711FR2, Keil uVision, ULink2, 16MHz external Clock
RCCU_MCLKConfig(RCCU_DEFAULT); RCCU_FCLKConfig(RCCU_RCLK_2); RCCU_PCLKConfig(RCCU_RCLK_8); RCCU_PLL1Config(RCCU_PLL1_Mul_24, RCCU_Div_4); RCCU_Div2Config(ENABLE); while (RCCU_FlagStatus(RCCU_PLL1_LOCK) == RESET); RCCU_RCLKSourceConfig(RCCU_PLL1_Output);
/* timer initialization */
/* initialize the TIM0 peripheral */ TIM_Init(TIM0); /* set internal clock source */ //TIM_ClockSourceConfig(TIM0, TIM_INTERNAL); /* set prescaler value */ TIM_PrescalerConfig(TIM0, PRESCALER_100_MS); /* enable the timer overflow, interupt */ TIM_ITConfig(TIM0, TIM_TO_IT, ENABLE);
/* Timer 0 */ /* configure IRQ interruptswith EIC */ /* enable channel */ EIC_IRQChannelConfig(T0TIMI_IRQChannel, ENABLE); /* set priority for channel */ EIC_IRQChannelPriorityConfig(T0TIMI_IRQChannel , 1); /* enable interrupts */ EIC_IRQConfig(ENABLE);
expected ISR void T0TIMI_IRQHandler(void) {...}
Thanks werner