CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

set_power_pwm_override..how to make the phase shift?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
chibi41



Joined: 16 Apr 2012
Posts: 12

View user's profile Send private message

set_power_pwm_override..how to make the phase shift?
PostPosted: Sun Apr 29, 2012 12:09 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri May 04, 2012 2:18 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group