Dear all
i was trying to implement a variable duty PWM using deadband sample program. the code i used
float k=0.1;
float m=0.0; //intialization in the main program
//for both the intialization statements expected an identifier error popped
//since i need to see one of the PWM's varying in duty cycle so the code below
if ( k < (float)0.96 ) //error expected an expression popped
{
(float) m = k*6000; //error expected an expression popped
EPwm3Regs.CMPA.half.CMPA = m; //error expected an expression popped
k= k+0.05; //error expected an expression popped
}
else
{
k=0.1; //error expected an expression popped
}
help me with the error elimination
Thanks in advance.:)