3.4.1.5 Time-Base Counter Register (TBCTR)
Figure 3-76. Time-Base Counter Register (TBCTR)
15
0
TBCTR
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 3-25. Time-Base Counter Register (TBCTR) Field Descriptions
Bits
Name
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.
3.4.1.6 Time-Base Period Register (TBPRD)
Figure 3-77. Time-Base Period Register (TBPRD)
15
0
TBPRD
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 3-26. Time-Base Period Register (TBPRD) Field Descriptions
Bit
Field
Value
Description
15-0
TBPRD
0000-
FFFFh
These bits determine the period of the time-base counter. This sets the PWM frequency.
Shadowing of this register is enabled and disabled by the TBCTL[PRDLD] bit. By default this
register is shadowed.
•
If TBCTL[PRDLD] = 0, then the shadow is enabled and any write or read will automatically go
to the shadow register. In this case, the active register will be loaded from the shadow register
when the time-base counter equals zero.
•
If TBCTL[PRDLD] = 1, then the shadow is disabled and any write or read will go directly to the
active register, that is the register actively controlling the hardware.
•
The active and shadow registers share the same memory map address.
Enhanced Pulse Width Modulator (ePWM) Module
332
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......