I am using a DRV8312-C2-Kit with tms320f28035. I use Cuptimer0 to generate interrupt. And after PWM1 interrupt generate, Cputimer0 interrupt is lost, and Cputimer interrupt is not stable, it shift always. If anyone can help me?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am using a DRV8312-C2-Kit with tms320f28035. I use Cuptimer0 to generate interrupt. And after PWM1 interrupt generate, Cputimer0 interrupt is lost, and Cputimer interrupt is not stable, it shift always. If anyone can help me?
Qi,
is the CPU timer interrupt flag set during and at the end of the PWM ISR?
Regards,
Cody
Hello Dear Cody:
Thanks very much for your feedback.
Yes, Cpu timer interrupt flag is set at the end of the PWM ISR. I make a break piont at the end of the PWM ISR and monitor the register value with debug.
By the way, if I only use cpu timer interrupt or only use pwm interrupt. Everything is ok. Do you have some example to configure 2 interrupt? I check the control suite and never find some example which uses 2 kinds of interrupt together. I do not know if my configuration is good.
Qi,
by default Nested interrupts are disabled. There is a wiki page describing the details of how interrupts work with C28x processors. http://processors.wiki.ti.com/index.php/Interrupt_Nesting_on_C28x
I think your configuration is probably OK, read through the wiki page and decide if you would like to try and implement nested interrupts.
Hope it helps,
Cody