Counter-Compare Submodule Registers - Texas Instruments Concerto F28M35 Series Technical Reference Manual

Table of Contents

Advertisement

ePWM Submodules
7.2.3.1
Purpose of the Counter-Compare Submodule
The counter-compare submodule takes as input the time-base counter value. This value is continuously
compared to the counter-compare A (CMPA) counter-compare B (CMPB) counter-compare C (CMPC) and
counter-compare D (CMPD)registers. When the time-base counter is equal to one of the compare
registers, the counter-compare unit generates an appropriate event.
The counter-compare:
Generates events based on programmable time stamps using the CMPA, CMPB, CMPC and CMPD
registers
– CTR = CMPA: Time-base counter equals counter-compare A register (TBCTR = CMPA).
– CTR = CMPB: Time-base counter equals counter-compare B register (TBCTR = CMPB)
– CTR = CMPC: Time-base counter equals counter-compare C register (TBCTR = CMPC).
– CTR = CMPD: Time-base counter equals counter-compare D register (TBCTR = CMPD)
Controls the PWM duty cycle if the action-qualifier submodule is configured appropriately using
counter-compare A (CMPA) & counter-compare B (CMPB)
Shadows new compare values to prevent corruption or glitches during the active PWM cycle
7.2.3.2
Controlling and Monitoring the Counter-Compare Submodule
The counter-compare submodule operation is controlled and monitored by the registers shown in
6:
Register Name
Address Offset
CMPCTL
CMPCTL2
CMPAHR
CMPA
CMPAHRM
CMPAM
CMPAHRM2
CMPAM2
CMPB
CMPBHR
CMPBHRM
CMPBM
CMPC
CMPD
(1)
This register is available only on ePWM modules with the high-resolution extension (HRPWM). On ePWM modules that do not
include the HRPWM this location is reserved. This register is described in the device-specific High-Resolution Pulse Width
Modulator (HRPWM) section of this manual. Refer to the device-specific data manual to determine which ePWM instances
include this feature.
654
C28 Enhanced Pulse Width Modulator (ePWM) Module
Table 7-6. Counter-Compare Submodule Registers
Shadowed
0x07
No
0x41
No
0x08
Yes
0x09
Yes
0x2C
Writes
0x2D
Writes
0x64
Yes
0x65
Yes
0x0A
Yes
0x4A
Yes
0x66
Writes
0x67
Writes
0x69
Yes
0x6B
Yes
Copyright © 2012–2019, Texas Instruments Incorporated
Description
Counter-Compare Control Register
Counter Compare Control Register 2
HRPWM Counter-Compare A Extension Register
Counter-Compare A Register
HRPWM Counter-Compare A Extension Mirror Register
Counter-Compare A Mirror Register
Counter Compare A High-Resolution Mirror 2 Register
Counter Compare A Mirror 2 Register
Counter-Compare B Register
Compare B High-Resolution Register
Counter Compare B High-Resolution Mirror Register
Counter Compare B Mirror Register
Counter Compare C Register
Counter Compare D Register
SPRUH22I – April 2012 – Revised November 2019
www.ti.com
Table 7-
(1)
(1)
(1)
(1)
(1)
Submit Documentation Feedback

Advertisement

Table of Contents
loading

Table of Contents