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 with Using ADC

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



Joined: 04 Jun 2007
Posts: 13

View user's profile Send private message

Help with Using ADC
PostPosted: Tue Jul 29, 2008 12:16 pm     Reply with quote

I have never attempted anything using the ADC on a pic chip. Is there any example code anywhere on how to set up a 12f683 to read the voltage change from a Potentiometer and toggle another pin on or off. For example I would have the POT connect to Pin 6 and the led connected to pin 2. I would need it to sense the voltage change in pin 6 and when it does turn the led on connected to pin 2? Can anyone help.

RB8720
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jul 29, 2008 12:19 pm     Reply with quote

This sounds like a school assignment. You should at least TRY to do it
yourself before asking for help.
rb8720



Joined: 04 Jun 2007
Posts: 13

View user's profile Send private message

PostPosted: Tue Jul 29, 2008 12:38 pm     Reply with quote

It's not a school assignment, my school days have been long over. I am trying, but to be honest I have no idea where to start which is why i was looking for an example. Can you point me in the right direction to get started.

RB8720
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jul 29, 2008 12:50 pm     Reply with quote

Here is an example:
http://www.ccsinfo.com/forum/viewtopic.php?t=32168&start=1
rb8720



Joined: 04 Jun 2007
Posts: 13

View user's profile Send private message

PostPosted: Tue Jul 29, 2008 1:02 pm     Reply with quote

Thanks, I think I can take that and make it work for what i am trying.

RB8720
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