Part Number: TMS320F280025C
Hi experts,
I have an issue, I configure in my code three timers. TIMER0 and TIMER2 => interrupt and TIMER1 classic mode only to count.
For this I use TIMER0, TIMER1 and TIMER2, TIMER0 is connected to the ePIE module it work fine (I use this to transmit TX CAN frames) and I want to use TIMER2 for regulation interrupt.
It doesn't work for TIMER2.
I never get out of this interrupt : so how acknowledge this interrupt ? I can't use "Interrupt_clearACKGroup(x)" because TIMER2 isn't part of PIE mapping no ?
You can see my code :
/**Initialization timer for ISR TX_CAN*/ timer_cpu_init(CPUTIMER0_BASE); /**Timer for CAN communication Interrupt all of (us) 10ms*/ timer_cpu_config(CPUTIMER0_BASE, DEVICE_SYSCLK_FREQ, 10000); Interrupt_register(INT_TIMER0, &isr_timer); CPUTimer_enableInterrupt(CPUTIMER0_BASE); Interrupt_enable(INT_TIMER0); /**Initialization timer for STEP_START_TIMER precharge and monitoring utilization*/ timer_cpu_init(CPUTIMER1_BASE); /**Timer for STEP_START_TIMER precharge all of (us) PARAM_T_PL_US and monitoring utilization*/ config_cpu_timer(CPUTIMER1_BASE); /**Initialization timer for regulation interrupt*/ timer_cpu_init(CPUTIMER2_BASE); /**Timer for regulation interrupt all of (us) 25us*/ timer_cpu_config(CPUTIMER2_BASE, DEVICE_SYSCLK_FREQ, 25); Interrupt_register(INT_TIMER2, &isr_regulation); CPUTimer_enableInterrupt(CPUTIMER2_BASE); Interrupt_enable(INT_TIMER2); /**Start timer for interrupt CAN (to send frames)*/ CPUTimer_startTimer(CPUTIMER0_BASE); /**Start timer for precharge step (to measure precharge voltage when timer is reached)*/ CPUTimer_startTimer(CPUTIMER1_BASE); /**Start timer for regulation interrupt*/ CPUTimer_startTimer(CPUTIMER2_BASE);
Thanks,
Damien