Other Parts Discussed in Thread: SYSCONFIG
Hello,
I am trying to provide a sync pulse from EPWM1 to an output GPIO34.
With the following code, I can see that the XBar registers are correct and the GPIO registers are correct when viewing in the debugger. I can toggle the GPIO mux to an output (0 value), and then toggle the GPIO data bit and watch the output toggle, so the signal is good from the GPIODAT to the actual pin. Not sure where the signal is getting lost, I'm guessing there is something simple I'm overlooking.
Any help would be appreciated,
Thanks
Dave
//Output (GPIO34 is connected to X-Bar1 in GPIO setup)
XBAR_setOutputMuxConfig(XBAR_OUTPUT1, XBAR_OUT_MUX14_EXTSYNCOUT );
SyncSocRegs.SYNCSELECT.bit.SYNCOUT = 0 ; //00 EPWM1SYNCOUT selected (default)
EPwm1Regs.TBCTL.bit.SYNCOSEL = TB_CTR_ZERO;
#define PWM1_SYNC 34
GPIO_SetupPinMux(PWM1_SYNC, GPIO_MUX_CPU1, 1); //Output X-Bar 1
GPIO_SetupPinOptions(PWM1_SYNC, GPIO_OUTPUT, GPIO_PUSHPULL);
