Action-Qualifier Event Priority For Up-Down-Count Mode; Action-Qualifier Event Priority For Up-Count Mode; Action-Qualifier Event Priority For Down-Count Mode; Behavior If Cmpa/Cmpb Is Greater Than The Period - Texas Instruments Concerto F28M36 Series Technical Reference Manual

Table of Contents

Advertisement

www.ti.com
7.2.4.3
Action-Qualifier Event Priority
It is possible for the ePWM action qualifier to receive more than one event at the same time. In this case
events are assigned a priority by the hardware. The general rule is events occurring later in time have a
higher priority and software forced events always have the highest priority. The event priority levels for up-
down-count mode are shown in
lowest. The priority changes slightly depending on the direction of TBCTR.
Table 7-10. Action-Qualifier Event Priority for Up-Down-Count Mode
Priority Level
1 (Highest)
2
3
4
5
6 (Lowest)
Table 7-11
shows the action-qualifier priority for up-count mode. In this case, the counter direction is
always defined as up and thus down-count events will never be taken.
Priority Level
1 (Highest)
2
3
4
5 (Lowest)
Table 7-12
shows the action-qualifier priority for down-count mode. In this case, the counter direction is
always defined as down and thus up-count events will never be taken.
Priority Level
1 (Highest)
2
3
4
5 (Lowest)
It is possible to set the compare value greater than the period. In this case the action will take place as
shown in
Table
7-13.
Counter Mode
Compare on Up-Count Event
CAD/CBD
Up-Count Mode
If CMPA/CMPB ≤ TBPRD period, then the event
occurs on a compare match (TBCTR=CMPA or
CMPB).
If CMPA/CMPB > TBPRD, then the event will not
occur.
SPRUHE8E – October 2012 – Revised November 2019
Submit Documentation Feedback
Table
7-10. A priority level of 1 is the highest priority and level 7 is the
Event If TBCTR is Incrementing
TBCTR = Zero up to TBCTR = TBPRD
Software forced event
Counter equals CMPB on up-count (CBU)
Counter equals CMPA on up-count (CAU)
Counter equals zero
Counter equals CMPB on down-count (CBD)
Counter equals CMPA on down-count (CAD)
Table 7-11. Action-Qualifier Event Priority for Up-Count Mode
Event
Software forced event
Counter equal to period (TBPRD)
Counter equal to CMPB on up-count (CBU)
Counter equal to CMPA on up-count (CAU)
Counter equal to Zero
Table 7-12. Action-Qualifier Event Priority for Down-Count Mode
Event
Software forced event
Counter equal to Zero
Counter equal to CMPB on down-count (CBD)
Counter equal to CMPA on down-count (CAD)
Counter equal to period (TBPRD)
Table 7-13. Behavior if CMPA/CMPB is Greater than the Period
Copyright © 2012–2019, Texas Instruments Incorporated
Event If TBCTR is Decrementing
TBCTR = TBPRD down to TBCTR = 1
Software forced event
Counter equals CMPB on down-count (CBD)
Counter equals CMPA on down-count (CAD)
Counter equals period (TBPRD)
Counter equals CMPB on up-count (CBU)
Counter equals CMPA on up-count (CBU)
Compare on Down-Count Event
CAD/CBD
Never occurs.
C28 Enhanced Pulse Width Modulator (ePWM) Module
ePWM Submodules
701

Advertisement

Table of Contents
loading

Table of Contents