Registers
735
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Pulse Width Modulator (ePWM) Module
Table 7-29. Time-Base Phase Register and Mirror Register (TBPHS / TBPHSM) Field Descriptions
Bit
Field
Value
Description
15-0
TBPHS
0000-FFFF
These bits set time-base counter phase of the selected ePWM relative to the time-base
that is supplying the synchronization input signal.
• If TBCTL[PHSEN] = 0, then the synchronization event is ignored and the time-base
counter is not loaded with the phase.
• If TBCTL[PHSEN] = 1, then the time-base counter (TBCTR) will be loaded with the
phase (TBPHS) when a synchronization event occurs. The synchronization event can
be initiated by the input synchronization signal (EPWMxSYNCI) or by a software forced
synchronization.
Figure 7-80. Time-Base Phase High-Resolution Register and Mirror Register (TBPHSHR /
TBPHSHRM)
15
8
TBPHSHR
R/W-0
7
0
Reserved
R-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 7-30. Time-Base Phase High-Resolution Register and Mirror Register (TBPHSHR /
TBPHSHRM) Field Descriptions
Bit
Field
Value
Description
15-8
TBPHSHR
00-FFh
Time base phase high-resolution bits
7-0
Reserved
Reserved
Figure 7-81. Time-Base Counter Register (TBCTR)
15
0
TBCTR
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 7-31. Time-Base Counter Register (TBCTR) Field Descriptions
Bit
Field
Value
Description
15-0
TBCTR
0000-FFFF
Reading these bits gives the current time-base counter value.
Writing to these bits sets the current time-base counter value. The update happens as
soon as the write occurs; the write is NOT synchronized to the time-base clock (TBCLK)
and the register is not shadowed.
Figure 7-82. Time-Base Control Register (TBCTL)
15
14
13
12
10
9
8
FREE, SOFT
PHSDIR
CLKDIV
HSPCLKDIV
R/W-0
R/W-0
R/W-0
R/W-0,0,1
7
6
5
4
3
2
1
0
HSPCLKDIV
SWFSYNC
SYNCOSEL
PRDLD
PHSEN
CTRMODE
R/W-0,0,1
R/W-0
R/W-0
R/W-0
R/W-0
R/W-11
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset