PIE
Event Trigger
Module Logic
CTR=Zero
CTR=PRD
CTR=CMPA
EPWMxINTn
CTR=CMPB
CTR_dir
Direction
qualifier
CTRU=CMPA
ETSEL reg
EPWMxSOCA
/n
/n
/n
EPWMxSOCB
ADC
clear
count
count
clear
count
clear
CTRD=CMPA
CTRU=CMPB
CTRD=CMPB
ETPS reg
ETFLG reg
ETCLR reg
ETFRC reg
CTR=Zero or PRD
DCAEVT1.soc
DCBEVT1.soc
From Digital Compare
(DC) Submodule
ETINTPS reg
ETSOCPS reg
ETNTINITCTL reg
ETCNTINIT reg
EPWMxSYNCI
CTR=CMPC
CTRU=CMPC
CTRD=CMPC
CTR=CMPD
CTRU=CMPD
CTRD=CMPD
ePWM Submodules
732
SPRUHE8E – October 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Pulse Width Modulator (ePWM) Module
Figure 7-43. Event-Trigger Submodule Showing Event Inputs and Prescaled Outputs
The key registers used to configure the event-trigger submodule are shown in
:
Table 7-23. Event-Trigger Submodule Registers
Register Name
Address Offset
Shadowed
Description
ETSEL
0x19
No
Event-Trigger Selection Register
ETPS
0x1A
No
Event-Trigger Prescale Register
ETFLG
0x1B
No
Event-Trigger Flag Register
ETCLR
0x1C
No
Event-Trigger Clear Register
ETFRC
0x1D
No
Event-Trigger Force Register
ETCLRM
0x70
No
Event-Trigger Clear Register Mirror
ETINTPS
0x50
No
Event-Trigger Interrupt Pre-Scale Register
ETSOCPS
0x51
No
Event-Trigger SOC Pre-Scale Register
ETCNTINITCTL
0x52
No
Event-Trigger Counter Initialization Control Register
ETCNTINIT
0x53
No
Event-Trigger Counter Initialization Register
•
ETSEL - This selects which of the possible events will trigger an interrupt or start an ADC conversion.
•
ETPS - This programs the event prescaling options mentioned above.
•
ETFLG - These are flag bits indicating status of the selected and prescaled events.
•
ETCLR - These bits allow you to clear the flag bits in the ETFLG register via software.
•
ETFRC - These bits allow software forcing of an event. Useful for debugging or software intervention.
•
ETINTPS - This programs the interrupt event prescaling options, supporting count and period up to 15
events.
•
ETSOCPS - This programs the SOC event prescaling options, supporting count and period up to 15
events.
•
ETCNTINITCTL - These bits enable ETCNTINIT initialization via SYNC event OR via software force.
•
ETCNTINIT - These bits allow you to initialize INT/SOCA/SOCB counters on SYNC events (or software
force) with user programmed value.