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 using a 30F4013

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



Joined: 04 Feb 2009
Posts: 83
Location: PA

View user's profile Send private message Send e-mail

PWM using a 30F4013
PostPosted: Wed Sep 29, 2010 9:02 am     Reply with quote

I realize that many do not use the dsPIC's...

I have a question regarding the PWM however.

Would the PWM work the same way as an 8-bit uC on a 30F4013?

by 'same way' I mean just picking a duty cycle and calling the same function as you would with an 8-bit uC ...

If anyone has an example for this PIC i would appreciate it...

I do not need any whole code here, just an example of how it is implemented.

appreciated as always
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Sep 29, 2010 11:27 am     Reply with quote

CCS has an example for the 30F2010 in this file. It may help:
Code:

c:\program files\picc\examples\ex_pwm.c   
deperkin



Joined: 04 Feb 2009
Posts: 83
Location: PA

View user's profile Send private message Send e-mail

Thanks
PostPosted: Wed Sep 29, 2010 12:55 pm     Reply with quote

Thanks as always.

Also, I have tried your CCP example to capture and measure a frequency, which worked very well (thank you)

Do you know if this would be just as applicable for the IC pins on the dsPICs ?

I cannot see why it would not work, but thought you may know if it would not.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Sep 29, 2010 2:13 pm     Reply with quote

The problem is that I don't have the PCD compiler so I can't check it.
So I don't know.
deperkin



Joined: 04 Feb 2009
Posts: 83
Location: PA

View user's profile Send private message Send e-mail

PostPosted: Wed Sep 29, 2010 2:49 pm     Reply with quote

No problem, thanks though...

I will check it and see before long and let you know.
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