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

adc comparator voltage

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



Joined: 28 May 2012
Posts: 24
Location: france

View user's profile Send private message AIM Address

adc comparator voltage
PostPosted: Sun Apr 21, 2013 1:45 pm     Reply with quote

Hello

I'd put in one of my projects a reading of battery voltage 12v.

I use a 16F88, I'd light a LED has a certain voltage and another led to another voltage.
Can you give me an example? because I do not see how to do this.


thank you
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Sun Apr 21, 2013 2:26 pm     Reply with quote

Oh, come on.

1) CCS supplies example code for ADC.
2) Start by using their code.
3) CCS supplies code for driving LEDs.
4) Get LED code to work.
5) Merge LED and ADC codes
6) When you get stuck, show us what you've done and we'll help.

Mike

EDIT

There is example code for ADC and LED code on this forum.
Do a search.
senem



Joined: 29 May 2013
Posts: 1

View user's profile Send private message

PostPosted: Wed May 29, 2013 1:17 pm     Reply with quote

Hello will, have you taken CCS example code of ADC and LEDs. What is the result of merging this code, have you succeeded in this project? We will be glad to hear good results.

board assembly


Last edited by senem on Tue Jun 04, 2013 9:14 am; edited 2 times in total
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed May 29, 2013 1:20 pm     Reply with quote

like MikeW says...

and...

be sure to design and install a voltage divider on the ADC input you've chosen...

otherwise PIC might go POOF !

hth
jay
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