3.4 Registers
This section includes the register layouts and bit description for the submodules.
3.4.1 Time-Base Submodule Registers
This section describes the time-base submodule registers.
3.4.1.1 Time-Base Control Register (TBCTL)
Figure 3-72. 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
Table 3-21. Time-Base Control Register (TBCTL) Field Descriptions
Bit
Field
Value
Description
15-14
FREE, SOFT
Emulation Mode Bits. These bits select the behavior of the ePWM time-base counter during
emulation events:
00
Stop after the next time-base counter increment or decrement
01
Stop when counter completes a whole cycle:
•
Up-count mode: stop when the time-base counter = period (TBCTR = TBPRD)
•
Down-count mode: stop when the time-base counter = 0x0000 (TBCTR = 0x0000)
•
Up-down-count mode: stop when the time-base counter = 0x0000 (TBCTR = 0x0000)
1x
Free run
13
PHSDIR
Phase Direction Bit.
This bit is only used when the time-base counter is configured in the up-down-count mode.
The PHSDIR bit indicates the direction the time-base counter (TBCTR) will count after a
synchronization event occurs and a new phase value is loaded from the phase (TBPHS) register.
This is irrespective of the direction of the counter before the synchronization event..
In the up-count and down-count modes this bit is ignored.
0
Count down after the synchronization event.
1
Count up after the synchronization event.
12-10
CLKDIV
Time-base Clock Prescale Bits
These bits determine part of the time-base clock prescale value.
TBCLK = SYSCLKOUT / (HSPCLKDIV × CLKDIV)
000
/1 (default on reset)
001
/2
010
/4
011
/8
100
/16
101
/32
110
/64
111
/128
Enhanced Pulse Width Modulator (ePWM) Module
328
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......