![Texas Instruments AM1808 Скачать руководство пользователя страница 554](http://html.mh-extra.com/html/texas-instruments/am1808/am1808_technical-reference-manual_1094558554.webp)
Registers
554
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Enhanced High-Resolution Pulse-Width Modulator (eHRPWM)
16.4.1.5 Time-Base Period Register (TBPRD)
The time-base period register (TBPRD) is shown in
and described in
.
Figure 16-69. Time-Base Period Register (TBPRD)
15
0
TBPRD
R/W-0
LEGEND: R/W = Read/Write; -
n
= value after reset
Table 16-56. Time-Base Period Register (TBPRD) Field Descriptions
Bits
Name
Value
Description
15-0
TBPRD
0-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.
16.4.2 Counter-Compare Submodule Registers
lists the memory-mapped registers for the counter-compare submodule. See your device-
specific data manual for the memory address of these registers. All other register offset addresses not
listed in
should be considered as reserved locations and the register contents should not be
modified.
(1)
This register is only available on ePWM instances that include the high-resolution PWM (HRPWM) extension; otherwise, this
location is reserved. See your device-specific data manual to determine which instances include the HRPWM.
Table 16-57. Counter-Compare Submodule Registers
Offset
Acronym
Register Description
Section
Eh
CMPCTL
Counter-Compare Control Register
10h
CMPAHR
Counter-Compare A High-Resolution Register
(1)
12h
CMPA
Counter-Compare A Register
14h
CMPB
Counter-Compare B Register