Other Parts Discussed in Thread: C2000WARE
i am trying to synchronize two boards with one acting as master and other as slave .Below is the code for master and doesnot give any synchronize pulse out of Gpio 6.What is the problem in code
Master:
//***********Main codes in EPWM***********************
EPwm1Regs.TBCTL.bit.SYNCOSEL = TB_CTR_ZERO;
SyncSocRegs.SYNCSELECT.bit.SYNCOUT = 0; //EPWM1SYNCOUT
//*****************GPIO****************************
EALLOW;
// Configuring GPIO as EPWM
//PWM 1A e 1B
GpioCtrlRegs.GPAPUD.bit.GPIO6 = 0; // Enable pullup resistor
GpioCtrlRegs.GPAMUX1.bit.GPIO6 = 3; // Set GPIO6 to SYNCOUT
GpioCtrlRegs.GPADIR.bit.GPIO6 = 1; // set as output
EDIS;
;do i need to write InitEPwm1Gpio() for epwm1 just like i write for epwm 2 and epwm3