Dear Mr./Ms.
I am doing some testing on TMS320F28388D.
I am trying to configure the ePWM1 module to work in the "count-up-down" mode, and generate a ePWM1 interrupt at the CTR=PRD every 5 events, and also generate a SOCA signal at the CTR=PRD every 5 events.
From my understanding, the counter values of ETSOCPS[SOCACNT2] and ETINTPS[INTCNT2] should be the same, because they are counting according to the same signals from the TB module.
But actually, when I read the values when the ePWM interrupt is generated, they are really different. why does this happen?
I also want to reload the CMP values at the point when the ePWM1 interrupt is generated, which means at the point of CTR=PRD every 5 events. So I used the global reload function. How can I make sure the global reload counter is synchronized with the counter of ETINTPS[INTCNT2]?
Looking forward to your reply!