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.
Hi
Problem background: It was found that PWM interrupt could not be entered without and power-down again, after an online upgrade of TI28235 program using CAN BOOTLOADER. By analyzing the cause, it was found that the ETFLG flag corresponding to the PWM interrupt was not cleared inside the PWM initialization.
Question (1): Since the ETFLG logo is always there, why is it impossible to get into the PWM interrupt program?
Question (2): Is it because PWM's interrupt request to the CPU is a pulse signal? It is described in the TI technical documentation as:
If interrupts are enabled ,ETSEL[INTEN]=1 and the interrupt flag is clear,ETFLG[INT]=0, then an interrupt pulse is generated and the interrupt flag is set, ETFLG[INT]=1.
So how long does this pulse signal last?
Thanks.
Hi Devin,
Thanks for your answer. And the customer also have the problem for PWM interrupt. I would appreciate it if you could help to answer it.
First, there is an operation to clear ETFLG.INT in his ISR interrupt program. Under normal circumstances, the ISR interrupt program can run according to the PWM interrupt cycle.
Second, his PWM initialization program does not clear ETFLG.INT. In this case, after the CAN BOOTLOADER is upgraded, the interrupt program cannot be entered.
What is the reason for this phenomenon. Since ETFLG.INT is always 1, why not enter the ISR interrupt, then ETFLG.INT can be cleared in the ISR interrupt.
Thanks.