4.4.3 High Resolution Period Control (HRPCTL) Register
Figure 4-17. High Resolution Period Control (HRPCTL) Register
15
8
Reserved
R-0
7
3
2
1
0
Reserved
TBPHSHR
LOADE
PWMSYNCSEL
HRPE
R-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 4-11. High Resolution Period Control (HRPCTL) Register Field Descriptions
Bit
Field
Value Description
15-3
Reserved
Reserved
2
TBPHSHRLOADE
TBPHSHR Load Enable
This bit allows you to synchronize ePWM modules with a high-resolution phase on a SYNCIN,
TBCTL[SWFSYNC] or digital compare event. This allows for multiple ePWM modules operating at
the same frequency to be phase aligned with high-resolution.
0
Disables synchronization of high-resolution phase on a SYNCIN, TBCTL[SWFSYNC] or digital
compare event:
1
Synchronize the high-resolution phase on a SYNCIN, TBCTL[SWFSYNC] or digital comparator
synchronization event. The phase is synchronized using the contents of the high-resolution phase
TBPHSHR register.
The TBCTL[PHSEN] bit which enables the loading of the TBCTR register with TBPHS register
value on a SYNCIN or TBCTL[SWFSYNC] event works independently. However, users need to
enable this bit also if they want to control phase in conjunction with the high-resolution period
feature.
This bit and the TBCTL[PHSEN] bit must be set to 1 when high-resolution period is enabled for
up-down count mode even if TBPHSHR = 0x0000. This bit does not need to be set when only
high-resolution duty is enabled.
1
PWMSYNCSEL
PWMSYNC Source Select Bit
This bit selects the source for the PWMSYNC signal.
The PWMSYNC signal is used by external modules (such as COMP+DAC) for synchronizing
timing to the selected ePWM module.
Note:
This bit is not used for high-resolution period control.
0
PWMSYNC is generated by TBCTR = PRD pulse.
1
PWMSYNC is generated by TBCTR = 0 pulse.
0
HRPE
High Resolution Period Enable Bit
0
High resolution period feature disabled. In this mode the ePWM behaves as a Type 0 ePWM.
1
High resolution period enabled. In this mode the HRPWM module can control high-resolution of
both the duty and frequency.
When high-resolution period is enabled, TBCTL[CTRMODE] = 0,1 (down-count mode) is not
supported.
(1)
This register is EALLOW protected.
(2)
This register is used with Type 1 ePWM modules (support high-resolution period) only.
High-Resolution Pulse Width Modulator (HRPWM)
404
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......