Specifications

2.3.2 Controlling and Monitoring the Counter-Compare Submodule
TBCTR[15:0]
Time
Base
(TB)
Module
16
CMPA[15:0]
16
16
16
CMPA
CompareAActiveReg.
CTR=CMPA
CTR=CMPB
Action
Qualifier
Module
Digital
comparatorB
CMPB[15:0]
TBCTR[15:0]
CTR=PRD
CTR=0
CMPCTL[LOADAMODE]
Shadow
load
CTR=PRD
CTR=0
CMPCTL[LOADBMODE]
CMPCTL[SHDWBFULL]
CMPCTL[SHDWBMODE]
CMPCTL
[SHDWAFULL]
CMPCTL
[SHDWAMODE]
CMPA
CompareAShadowReg.
Digital
comparatorA
CMPB
CompareBActiveReg.
CMPB
CompareBShadowReg.
Shadow
load
(AQ)
Counter-Compare (CC) Submodule
www.ti.com
The counter-compare submodule operation is controlled and monitored by the registers shown in
Table 2-4 :
Table 2-4. Counter-Compare Submodule Registers
Register Name Address Offset Shadowed Description
CMPCTL 0x0007 No Counter-Compare Control Register.
CMPAHR 0x0008 Yes HRPWM Counter-Compare A Extension Register
(1)
CMPA 0x0009 Yes Counter-Compare A Register
CMPB 0x000A Yes Counter-Compare B Register
(1)
This register is available only on ePWM modules with the high-resolution extension (HRPWM). On ePWM modules that do not
include the HRPWM this location is reserved. This register is described in the device-specific High-Resolution Pulse Width
Modulator (HRPWM) Reference Guide. Refer to the device specific data manual to determine which ePWM instances include
this feature.
Figure 2-12. Detailed View of the Counter-Compare Submodule
The key signals associated with the counter-compare submodule are described in Table 2-5 .
Table 2-5. Counter-Compare Submodule Key Signals
Signal Description of Event Registers Compared
CTR = CMPA Time-base counter equal to the active counter-compare A value TBCTR = CMPA
CTR = CMPB Time-base counter equal to the active counter-compare B value TBCTR = CMPB
CTR = PRD Time-base counter equal to the active period. TBCTR = TBPRD
Used to load active counter-compare A and B registers from the
shadow register
CTR = ZERO Time-base counter equal to zero. TBCTR = 0x0000
Used to load active counter-compare A and B registers from the
shadow register
ePWM Submodules34 SPRU791F November 2004 Revised July 2009
Submit Documentation Feedback