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

16f676 ADC voltage problem

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



Joined: 25 May 2011
Posts: 2

View user's profile Send private message Send e-mail MSN Messenger

16f676 ADC voltage problem
PostPosted: Wed Aug 24, 2011 3:33 am     Reply with quote

Hi guys,
I tried 16f676 with adc. I think it should work as a voltmeter. So ıt should have high impedance (adc pin). But 16f676 conduct excess current. How can I solve this problem?
_________________
Ali ÇAKIL student at Sakarya Univercity
my department:
eletrocity electronical engenieerings
(in Turkey)
Ttelmah



Joined: 11 Mar 2010
Posts: 19350

View user's profile Send private message

PostPosted: Wed Aug 24, 2011 4:00 am     Reply with quote

Buffer it.
Unity gain op-amp.
The ADC on the PIC is electrically seen as a resistance, in series with a capacitor, which is then paralleled by a small current sink. The actual voltage measurement is made across the capacitor, and the drive impedance needed to ensure that this charges to within a fraction of a bit of the 'real' value, despite the current sink, is typically in the order of 1 to 2KR.
The PIC ADC, is not really that suited for used as a voltmeter. Only 10bit resolution, when even quite cheap voltmeters manage better than this. Also you need to add external circuitry for ranging. However the ADC is faster than most cheap voltmeters (most of these use dual slop integration timing to give the conversion, and typically take 1/4second to do a conversion).

Best Wishes
Ali_54



Joined: 25 May 2011
Posts: 2

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Sun Aug 28, 2011 9:19 pm     Reply with quote

Thanks my friend. I solved it. Smile
_________________
Ali ÇAKIL student at Sakarya Univercity
my department:
eletrocity electronical engenieerings
(in Turkey)
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