Part Number: F28M36P63C2
Tool/software: Code Composer Studio
Hello,
I have been using the concerto family device F28M36P63C2 to design a switch mode power supply battery charger. i have been trying to set up the pwm waveform output. I am using the EPWM submodules 1 and 2 achieve this.
This is how i configure the action events for the the 2 PWM modules. The counter is in updown mode.
// Action Qualifier SubModule Registers for EPWM1
EPwm1Regs.AQCTLA.bit.CAD = AQ_SET;
EPwm1Regs.AQCTLA.bit.ZRO = AQ_NO_ACTION;
EPwm1Regs.AQCTLA.bit.CAU = AQ_CLEAR;
EPwm1Regs.AQCTLB.bit.CAD = AQ_NO_ACTION;
EPwm1Regs.AQCTLB.bit.ZRO = AQ_NO_ACTION;
EPwm1Regs.AQCTLB.bit.CAU = AQ_NO_ACTION;
// Action Qualifier SubModule Registers for EPWM2
EPwm2Regs.AQCTLA.bit.CAD = AQ_NO_ACTION;
EPwm2Regs.AQCTLA.bit.ZRO = AQ_NO_ACTION;
EPwm2Regs.AQCTLA.bit.CAU = AQ_NO_ACTION;
EPwm2 Regs.AQCTLB.bit.CAD = AQ_SET;
EPwm2Regs.AQCTLB.bit.ZRO = AQ_NO_ACTION;
EPwm2Regs.AQCTLB.bit.CAU = AQ_CLEAR;
I do this because i want to see PWM outputs for EPWM1A and EPWM2B , but i don't want to see anything in EPWM1B and EPWM2A. But for some reason when i look at the scope outputs for the PWM's, they are showing me unexpected results. Please take a look at the attached pictures.
EPWM 1A
EPWM 1B
EPWM 2A
EPWM 2B
Any suggestion or help is greatly appreciated. Thank you for your time,
Srini



