Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

set_power_pwm_override...help!!!

Status
Not open for further replies.

chibi41

New Member
how to determine the condition for this function currently i am using this coding

case 0:{
set_power_pwm_override(1,true,0);
set_power_pwm_override(0,false,1);
set_power_pwm_override(2,true,0);
set_power_pwm_override(3,false,1);
set_power_pwm_override(5,true,0);
set_power_pwm_override(4,false,1);

break;
}
case 1:{
set_power_pwm_override(0,true,0);
set_power_pwm_override(1,false,1);
set_power_pwm_override(3,true,0);
set_power_pwm_override(2,false,1);
set_power_pwm_override(4,true,0);
set_power_pwm_override(5,false,1);

break;
}
}
}

in order to get the output as attached(untitled2)..but the signal produced from the coding above attached(untitled)..
so now, i have no idea how to adjust the coding above especially about the true/false and also the condition 1/0....i do not know how to make the double phase shift..from my result,it only show one phase shift...

anyone pls help me..:confused:
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top