SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
Table 12-4317 lists the registers used to control and monitor the counter-compare submodule. Table 12-4318 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-2241 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 |