Other Parts Discussed in Thread: CONTROLSUITE
Hello everyone,
I have a question by debugging the example of "epwm_up_aq_cup01" , using CCS Version: 12.3.0.00005.
In this exsample the ePWM generate the interrupt by TBCTR = zero, see the code below :
EPwm1Regs.ETSEL.bit.INTSEL = ET_CTR_ZERO; // Select INT on Zero event
The interrupt should be called by TBCTR==0.
But as I am trying to check the value of EPwm1Regs.TBCTR when the "__interrupt void epwm1_isr(void)" is called (using a breakpoit).
The value of "EPwm1Regs.TBCTR" is not zero but 127 or something like that, and it is also not always 127, but 130, or 128.
Did I make some mistake by using the CCS or did I not understand the example correctly?
Thanks for your answers!