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
Posted: Tue Jul 29, 2008 12:19 pm
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
Posted: Tue Jul 29, 2008 12:38 pm
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.
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