Hi,
In the epwm deadband example i don't understand why it use (EPwm1Regs.TBPHS.half.TBPHS ) the half of the TBPHS register, why isn't EPwm1Regs.TBPHS.ALL ?
Gaston
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,
In the epwm deadband example i don't understand why it use (EPwm1Regs.TBPHS.half.TBPHS ) the half of the TBPHS register, why isn't EPwm1Regs.TBPHS.ALL ?
Gaston
Gaston -
Because TBPHS.all is a 32-bit value.
The upper 16-bit half is TBPHS 16-bit register. (hence the .half)
The lower 16-bit half is TBPHSHR (upper 8-bits of 16-bit register).
Together, they make up TBPHS:TBPHSHR as one 32-bit read/write when accessed using .all