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

Search found 4 matches
CCS Forum Index
Author Message
  Topic: Help with PWM on dsPIC 30f2010
briantlam

Replies: 15
Views: 45427

PostForum: General CCS C Discussion   Posted: Thu Oct 04, 2007 2:25 pm   Subject: Help with PWM on dsPIC 30f2010
Here the new code that still doesn't work:

#include <30F2010.h>
#fuses HS,NOWDT
#use delay (clock=20000000)

int16 duty = 32768;

void main()
{
setup_timer3 ...
  Topic: Help with PWM on dsPIC 30f2010
briantlam

Replies: 15
Views: 45427

PostForum: General CCS C Discussion   Posted: Thu Oct 04, 2007 2:12 pm   Subject: Help with PWM on dsPIC 30f2010
Sorry, I made some edits before copying over to this post. Here's the code I am using now, which still doesn't work.

#include <30F2010.h>
#fuses HS,NOWDT
#use delay (clock=20000000)

int1 ...
  Topic: Help with PWM on dsPIC 30f2010
briantlam

Replies: 15
Views: 45427

PostForum: General CCS C Discussion   Posted: Thu Oct 04, 2007 1:43 pm   Subject: Help with PWM on dsPIC 30f2010
I looked at that code and came up with some for my device. The code compiles but I do not get an output on the PWM pins. Here is my code:

#include
#fuses HS,NOWDT
#use delay (clock=20000000)

...
  Topic: Help with PWM on dsPIC 30f2010
briantlam

Replies: 15
Views: 45427

PostForum: General CCS C Discussion   Posted: Wed Oct 03, 2007 5:05 pm   Subject: Help with PWM on dsPIC 30f2010
I am relatively new to programming microcontrollers. I started with the dsPIC development kit and am trying to produce a PWM. What I am trying to do is produce a PWM where the duty cycle is adjusted b ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group