
Registers
574
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Enhanced High-Resolution Pulse-Width Modulator (eHRPWM)
16.4.8.3 HRPWM Configuration Register (HRCNFG)
The HRPWM configuration register (HRCNFG) is shown in
and described in
.
Figure 16-94. HRPWM Configuration Register (HRCNFG)
15
4
3
2
1
0
Reserved
HRLOAD
CTLMODE
EDGMODE
R-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 16-87. HRPWM Configuration Register (HRCNFG) Field Descriptions
Bit
Field
Value
Description
15-4
Reserved
0
ReserveD
3
HRLOAD
Shadow mode bit: Selects the time event that loads the CMPAHR shadow value into the active register:
0
CTR = 0 (counter equals zero)
1
CTR = PRD (counter equal period)
Note: Load mode selection is valid only if CTLMODE = 0 has been selected. You should select this event
to match the selection of the CMPA load mode (CMPCTL[LOADMODE] bits) in the EPWM module as
follows:
0
Load on CTR = 0: Time-base counter equal to zero (TBCNT = 0000h)
1h
Load on CTR = PRD: Time-base counter equal to period (TBCNT = TBPRD)
2h
Load on either CTR = 0 or CTR = PRD (should not be used with HRPWM)
3h
Freeze (no loads possible – should not be used with HRPWM)
2
CTLMODE
Control Mode Bits: Selects the register (CMP or TBPHS) that controls the MEP:
0
CMPAHR(8) Register controls the edge position (this is duty control mode). (default on reset)
1
TBPHSHR(8) Register controls the edge position (this is phase control mode).
1-0
EDGMODE
0-3h
Edge Mode Bits: Selects the edge of the PWM that is controlled by the micro-edge position (MEP) logic:
0
HRPWM capability is disabled (default on reset)
1h
MEP control of rising edge
2h
MEP control of falling edge
3h
MEP control of both edges