ePWM
C2000 Microcontroller Workshop - Control Peripherals 7 - 17
ePWM Action Qualifier Sub-Module
Registers
(lab file: EPwm.c)
Name Description Structure
AQCTLA AQ Control Output A EPwmxRegs.AQCTLA.all =
AQCTLB AQ Control Output B EPwmxRegs.AQCTLB.all =
AQSFRC AQ S/W Force EPwmxRegs.AQSFRC.all =
AQCSFRC AQ Cont. S/W Force EPwmxRegs.AQCSFRC.all =
ePWM Action Qualifier Control Register
EPwmxRegs.AQCTLy (y = A or B)
ZROCBU CAD CAU PRD
1 - 0
CBD
15 - 12
reserved
3 - 25 - 47 - 69 - 811 - 10
00 = do nothing (action disabled)
01 = clear (low)
10 = set (high)
11 = toggle (low → high; high → low)
Action when
CTR = CMPB
on DOWN Count
Action when
CTR = CMPB
on UP Count
Action when
CTR = CMPA
on DOWN Count
Action when
CTR = CMPA
on UP Count
Action when
CTR = 0
Action when
CTR = PRD