Table 4-9. HRPWM Configuration (HRCNFG) Register Field Descriptions
Bit
Field
Value Description
15-8
Reserved
Reserved
7
SWAPAB
Swap ePWM A and B Output Signals
This bit enables the swapping of the A and B signal outputs. The selection is as follows:
0
ePWMxA and ePWMxB outputs are unchanged.
1
ePWMxA signal appears on ePWMxB output and ePWMxB signal appears on ePWMxA output.
6
AUTOCONV
Auto Convert Delay Line Value
Selects whether the fractional duty cycle/period/phase in the CMPAHR/TBPRDHR/TBPHSHR register
is automatically scaled by the MEP scale factor in the HRMSTEP register or manually scaled by
calculations in application software. The SFO library function automatically updates the HRMSTEP
register with the appropriate MEP scale factor.
0
Automatic HRMSTEP scaling is disabled.
1
Automatic HRMSTEP scaling is enabled.
If application software is manually scaling the fractional duty cycle, or phase (that is, software sets
CMPAHR = (fraction(PWMduty * PWMperiod) * MEP Scale Factor)<<8 + 0x080 for duty cycle), then this
mode must be disabled.
5
SELOUTB
EPWMxB Output Select Bit
This bit selects which signal is output on the ePWMxB channel output.
0
ePWMxB output is normal.
1
ePWMxB output is inverted version of ePWMxA signal.
4-3
HRLOAD
Shadow Mode Bit
Selects the time event that loads the CMPAHR shadow value into the active register.
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
Reserved
2
CTLMODE
Control Mode Bits
Selects the register (CMP/TBPRD or TBPHS) that controls the MEP:
0
CMPAHR(8) or TBPRDHR(8) Register controls the edge position (that is, this is duty or period control
mode). (Default on Reset)
1
TBPHSHR(8) Register controls the edge position (that is, this is phase control mode).
1-0
EDGMODE
Edge Mode Bits
Selects the edge of the PWM that is controlled by the micro-edge position (MEP) logic:
00
HRPWM capability is disabled (default on reset)
01
MEP control of rising edge (CMPAHR)
10
MEP control of falling edge (CMPAHR)
11
MEP control of both edges (TBPHSHR or TBPRDHR)
(1)
This register is EALLOW protected.
4.4.2 High Resolution Micro Step (HRMSTEP) Register
Figure 4-16. High Resolution Micro Step (HRMSTEP) Register
15
8
7
0
Reserved
HRMSTEP
R-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
High-Resolution Pulse Width Modulator (HRPWM)
402
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......