Registers
744
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Pulse Width Modulator (ePWM) Module
Table 7-38. Counter-Compare Control Register (CMPCTL2) Field Descriptions (continued)
Bit
Field
Value
Description
3-2
LOADDMODE
Active Counter-Compare D Load from Shadow Select Mode:
00
Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01
Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10
Load on either CTR = Zero or CTR = PRD
11
Freeze (no loads possible)
Note:
Has no effect in Immediate mode.
1-0
LOADCMODE
Active Compare C Load from Shadow Select Mode:
00
Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01
Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10
Load on either CTR = Zero or CTR = PRD
11
Freeze (no loads possible)
Note:
Has no effect in Immediate mode.
Figure 7-89. Compare A High-Resolution and Mirror 2 Register (CMPAHR / CMPAHRM2 )
15
8
CMPAHR
R/W-0
7
0
Reserved
R-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 7-39. Compare A High-Resolution and Mirror 2 Register (CMPAHR / CMPAHRM2 ) Field
Descriptions
Bit
Field
Value
Description
15-8
CMPAHR
00-FFh
These 8-bits contain the high-resolution portion (least significant 8-bits) of the counter-compare A
value. CMPA:CMPAHR can be accessed in a single 32-bit read/write.
Shadowing is enabled and disabled by the CMPCTL[SHDWAMODE] bit as described for the CMPA
register.
7-0
Reserved
Reserved for TI Test