Hi all,
I am facing problem while implementing logical 'OR' function in GPIO pin(GPIO 32)..I am generating two square wave wsing two ePWM modules(ePWM2A and ePWM3B) and in addition to that i am using extra 6 ePWM for generating signals(for Sine PWM)...But the width of resulting ORed waveform on GPIO pin is changing in spite of having the width of original square waveforms remain fixed...ORed code has been written in main program as follows
...
...
while(1)
{
if(GpioDataRegs.GPADAT.bit.GPIO2 == 1 || GpioDataRegs.GPADAT.bit.GPIO5 == 1 )
GpioDataRegs.GPBSET.bit.GPIO32 = 1;
else GpioDataRegs.GPBCLEAR.bit.GPIO32 = 1;
}