www.ti.com
2.2.2 Controlling and Monitoring the Time-base Submodule
Table
Table 2-2. Time-Base Submodule Registers
Register | Address offset | Shadowed | Description |
TBCTL | 0x0000 | No | |
TBSTS | 0x0001 | No | |
TBPHSHR | 0x0002 | No | HRPWM extension Phase Register (1) |
TBPHS | 0x0003 | No | |
TBCTR | 0x0004 | No | |
TBPRD | 0x0005 | Yes |
(1)This register is available only on ePWM instances that include the
The block diagram in Figure
Figure 2-2. Time-Base Submodule Signals and Registers
TBPRD
PeriodShadow
TBPRD
PeriodActive
|
| 16 |
| |
TBCTR[15:0] |
|
| ||
|
| 16 |
| |
CTR=Zero |
| Counter | Reset | |
| Zero | |||
CTR_dir | Mode | |||
Dir | UP/DOWN | |||
|
|
| ||
CTR_max | Max |
| Load | |
|
| |||
TBCLK | clk |
|
| |
|
|
| ||
|
| TBCTR |
| |
| CounterActiveReg | |||
|
| 16 |
|
TBPHS
PhaseActiveReg
SYSCLKOUT Clock TBCLK Prescale
TBCTL[HSPCLKDIV]
TBCTL[CLKDIV]
TBCTL[PRDLD] |
|
|
|
TBCTL[SWFSYNC] |
|
| |
CTR=PRD |
|
|
|
|
|
| EPWMxSYNCI |
TBCTL[CTRMODE] |
|
|
|
| CTR=Zero | Sync | EPWMxSYNCO |
|
| ||
| CTR=CMPB Out | ||
TBCTL[PHSEN] |
| ||
| Select |
| |
| Disable |
| |
|
|
| |
| X |
|
|
| TBCTL[SYNCOSEL] |
24 | ePWM Submodules |