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

Which function to regulate output RB5 between 0V and 5V?

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



Joined: 04 Jun 2007
Posts: 27

View user's profile Send private message

Which function to regulate output RB5 between 0V and 5V?
PostPosted: Thu Aug 30, 2007 3:04 am     Reply with quote

With which function can I regulate output RB5 between 0V and 5V.
For example I want to set 2,5V (I have tryd the search function but the Question seems to be to easy =))
Ttelmah
Guest







PostPosted: Thu Aug 30, 2007 4:12 am     Reply with quote

You can't.
You need either an external DAC (digital to analog converter), _or_ you can generate a voltage, using one of the PWM outputs, and an integrator. The PIC has digital outputs, not analog outputs.

Best Wishes
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