3.4.2.6 Counter-Compare A Mirror (CMPAM) Register
Figure 3-86. Counter-Compare A Mirror (CMPAM) Register
15
0
CMPA
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 3-35. Counter-Compare A Mirror (CMPAM) Register Field Descriptions
Bit
Field
Value
Description
15-0
CMPA
0000-FFFFh CMPA and CMPAM can both be used to access the counter-compare A value. The only difference
is that the mirror register always reads back the active value.
By default writes to this register are shadowed. Unlike the CMPA register, reads of
CMPAM always return the active register value. Shadowing is enabled and disabled by the
CMPCTL[SHDWAMODE] bit.
•
If CMPCTL[SHDWAMODE] = 0, then the shadow is enabled and any write will automatically
go to the shadow register. All reads will reflect the active register value. In this case, the
CMPCTL[LOADAMODE] bit field determines which event will load the active register from the
shadow register.
•
Before a write, the CMPCTL[SHDWAFULL] bit can be read to determine if the shadow register
is currently full.
•
If CMPCTL[SHDWAMODE] = 1, then the shadow register is disabled and any write will go
directly to the active register, that is the register actively controlling the hardware.
Enhanced Pulse Width Modulator (ePWM) Module
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
341
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......