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 CCS Technical Support

PWM-Signal

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



Joined: 23 Jul 2013
Posts: 8

View user's profile Send private message

PWM-Signal
PostPosted: Sun Oct 06, 2013 1:02 pm     Reply with quote

Hallo

I have a problem to generate a PWM-signal...
I want that a LED is dimmed by a PWM-signal. I know that there are simpler methods but I will learn how I can use a PWM.
I use the dsPIC33FJ256MC710A, the PCD compiler from CCS and the dsPICDEM MCLV development board.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Oct 06, 2013 3:30 pm     Reply with quote

I don't have the PCD compiler but since no one else is answering, I'll try
to help you.

Look in the PCD compiler manual to find a commonly used PWM function
for a dsPIC33 with Motor Control PWM, such as set_motor_pwm_duty().
Then do a forum search for that, and all Motor Control dsPIC33's:
Quote:
dsPIC33FJ*MC* set_motor_pwm_duty

Set it to Search For All Terms.

Then you get this hit, with example code at the end:
http://www.ccsinfo.com/forum/viewtopic.php?t=46970

Next search for this:
Quote:
LED pwm dim*

and set it for Search For All Terms. Then you get an example for a 16F
PIC, but you can use the basic idea to make code for a dsPIC33:
http://www.ccsinfo.com/forum/viewtopic.php?t=40007&start=1
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