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

Help! adc and pwm with 18f2520

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



Joined: 27 Jul 2007
Posts: 33

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

Help! adc and pwm with 18f2520
PostPosted: Thu Aug 09, 2007 7:28 am     Reply with quote

Hello.
i am new in ccs. i have to make a project with pic18f2520 which have to trigger a full-bridge thyristor for a desired output voltage. i must read the analog voltage at the output of the bridge over pin RB0 and generate a pwm over pin RC1 and pin RC2. (i will trigger two thyristors over RC1 and the other two with RC2). Can anybody help me by writing an example which indicates reading analog voltage and generating a suitable pwm?


Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 09, 2007 4:13 pm     Reply with quote

Use the forum's search page to find articles on this in the archives.
Here's a few of them.
http://www.ccsinfo.com/forum/viewtopic.php?t=30431
http://www.ccsinfo.com/forum/viewtopic.php?t=31216
http://www.ccsinfo.com/forum/viewtopic.php?t=17729&start=1

Also look in your CCS example file directory:
Quote:
c:\program files\picc\examples\ex_pwm.c
pokiko



Joined: 27 Jul 2007
Posts: 33

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

PostPosted: Fri Aug 10, 2007 1:38 am     Reply with quote

thank you for your help PCM programmer.
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