Part Number:TMS320F28069
Tool/software: Code Composer Studio
Hi,
My application requires synchronization of two DSPs in order to generate phase shifted PWM. At the moment, I am using LAUNCHXL-F28069M for a first approach and just wanted to check if I was getting the synchronization output. According to the datasheet, I should be seen the SYNC output at pin 10 in J1 connector, but I'm not getting anything through that. PWM is working as expected though.
I configure the following registers in the PWM (just showing the related ones):
SysCtrlRegs.PCLKCR1.bit.EPWM1ENCLK = 1; //Enable ePWM1 clock
EPwm1Regs.TBCTL.bit.PHSEN = TB_DISABLE; // Master module
EPwm1Regs.TBCTL.bit.SYNCOSEL = TB_CTR_ZERO; // generate a syncout if CTR = 0
Also, I configure GPIO33 to be the output sync:
GpioCtrlRegs.GPBPUD.bit.GPIO33 = 1; // Disable pull-up on GPIO33 (EPWMSYNCO)
GpioCtrlRegs.GPBMUX1.bit.GPIO33 = 2; // Configures GPIO33 for EPWMSYNCO
Am I missing any other configuration?
Best regards,
Cristina.