This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

To Plot Carrier Signal

Other Parts Discussed in Thread: TMS320F2808

Board:- TMS320F2808

Any one can help me to plot a CARRIER signal in Simulator or Emulator mode.

(I am generating a PWM (Pulse Width Modulation) signal by comparing Reference signal with Carrier signal. Problem is that i am getting pwm signal in the CRO and Reference signal in simulator mode but not possible for me to see the Carrier signal ). Attaching a code:=

{

EPwm1Regs.TBPRD = 1200; 
EPwm1Regs.TBPHS.half.TBPHS = 0;
EPwm1Regs.TBCTL.bit.CTRMODE = TB_COUNT_UP; 
EPwm1Regs.TBCTL.bit.PHSEN = TB_DISABLE; 
EPwm1Regs.TBCTL.bit.PRDLD = TB_SHADOW;
EPwm1Regs.TBCTL.bit.SYNCOSEL = TB_CTR_ZERO;
EPwm1Regs.CMPCTL.bit.SHDWAMODE = CC_SHADOW;
EPwm1Regs.CMPCTL.bit.SHDWBMODE = CC_SHADOW;
EPwm1Regs.CMPCTL.bit.LOADAMODE = CC_CTR_ZERO; 
EPwm1Regs.CMPCTL.bit.LOADBMODE = CC_CTR_ZERO; 
EPwm1Regs.AQCTLA.bit.ZRO = AQ_SET; 
EPwm1Regs.AQCTLA.bit.CAU = AQ_CLEAR;

EPwm1Regs.CMPA.half.CMPA = 500;

}

First 3 line of the code generate Carrier signal.