Okay here is the latest content I have: 1. with HRPE=0, the TBPSHR operates as expected. 2. For PHSDIR = 1, negative phase values: the desired value need to be subtracted from 0xFF (this will be added to the TRM) Example: EPwm2Regs.TBPHS.bit.TBPHSHR = (Uint16)((0xFF - ((Uint16)total_phase >> 8)) << 8); When HRPE=1 use TRREM.
↧