chibi41
Joined: 16 Apr 2012 Posts: 12
|
set_power_pwm_override..how to make the phase shift? |
Posted: Sun Apr 29, 2012 12:09 am |
|
|
How to determine the condition for this function? Currently i am using this coding
Code: |
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 pwm output with the phase shift. But so far, I only got one phase shift. How to get the double/triple phase shift? |
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Fri May 04, 2012 2:18 pm |
|
|
You've been asking questions on this, and related issues, for some time now, in different posts, and getting NO response.
Maybe nobody here understands your question.
The PIC data sheet holds the answers.
The CCS .h file SHOULD show you how to achieve your goal.
If you are having real problems show us (if it's allowed) the part of the .h file you don't understand.
Otherwise you'll have to control registers directly with what you can glean fron the PIC data sheet.
Mike |
|