SPRUJ28F November 2021 – August 2025 AM68 , AM68A , TDA4AL-Q1 , TDA4VE-Q1 , TDA4VL-Q1
Table 12-253 lists the registers used to control and monitor the counter-compare submodule. Table 12-254 lists the key signals associated with the counter-compare submodule.
| Acronym | Register Description | Address Offset | Shadowed |
|---|---|---|---|
| EPWM_CMPCTL | Counter-Compare Control Register. | Eh | No |
| HRPWM_CMPAHR | HRPWM Counter-Compare A Extension Register (1) | 10h | Yes |
| EPWM_CMPA | Counter-Compare A Register | 12h | Yes |
| EPWM_CMPB | Counter-Compare B Register | 14h | Yes |
Figure 12-194 EPWM Counter-Compare Submodule Signals and Registers| Signal | Description of Event | Register Bitfields Compared |
|---|---|---|
| CMPA_eq | Time-base counter equal to the active counter-compare A value | TBCNT = CMPA |
| CMPB_eq | Time-base counter equal to the active counter-compare B value | TBCNT = CMPB |
| PRD_eq | Time-base counter equal to the active period. Used to load active counter-compare A and B registers from the shadow register | TBCNT = TBPRD |
| CNT_zero | Time-base counter equal to zero. Used to load active counter-compare A and B registers from the shadow register | TBCNT = 0000h |