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

ADC voltage input follower

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



Joined: 16 Aug 2010
Posts: 19

View user's profile Send private message

ADC voltage input follower
PostPosted: Thu Oct 27, 2011 11:41 pm     Reply with quote

Hi,

I'm feeding PIC10F222 ADC input with increasing voltage.


What is the correct way to make sure, that the voltage is really increase in code ?

For example: input voltage in first sample is 1volts, two seconds later the input is 2volts, etc. but if after the two seconds the voltage is less then the first sample (here is 1volts) then do something..

I'm looking for elegant way to coding it.


Last edited by eabir on Fri Oct 28, 2011 2:30 pm; edited 1 time in total
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 28, 2011 1:02 am     Reply with quote

Demo program for 10F222 A/D:
http://www.ccsinfo.com/forum/viewtopic.php?t=40263
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