Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 29th October 2009, 06:09 PM   #1
Default ADC calculations in the voltmeter project

i am working a voltmeter project.it is based on 16f676. but don't understand ADC calculations in the voltmeter project . i see also Electronic Circuits it is not working properly. and c lang. also
sahu is offline  
Old 30th October 2009, 12:01 AM   #2
Default

The A/D input to a Pic is usually ratiometric with respect to the Vdd pin, meaning if it is a 10 bit A/D, it will read out 1023 (2^10-1) when the analog input is the same as Vdd. That means you have to know what Vdd actually is; 5V is not good enough. You have to know if it is 4.87V or 5.04V.
__________________
Mike ML.
MikeMl is online now  
Old 30th October 2009, 12:11 AM   #3
Default

Does that particular pic not have an internal voltage reference? I'm used to AVR's which although they can use VCC as a voltage ref also generally have an internal bandgap voltage source of around 2.54 volts, so long as the VCC voltage is above the internal circuitry's threshold for regulation. (not sure what that is off the top of my head) the ADC results will be unaffected.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Old 30th October 2009, 05:02 PM   #4
Red face

Quote:
Originally Posted by MikeMl View Post
The A/D input to a Pic is usually ratiometric with respect to the Vdd pin, meaning if it is a 10 bit A/D, it will read out 1023 (2^10-1) when the analog input is the same as Vdd. That means you have to know what Vdd actually is; 5V is not good enough. You have to know if it is 4.87V or 5.04V.
dear sir
thank for replly, pl more exaplane and example....
sahu is offline  
Old 31st October 2009, 03:25 AM   #5
Default

They say it better than I can...
__________________
Mike ML.
MikeMl is online now  
Old 31st October 2009, 04:12 PM   #6
Default

Quote:
Originally Posted by MikeMl View Post
They say it better than I can...
thank you i read it. if any problem,then i contact you
sahu is offline  
Old 1st November 2009, 12:23 AM   #7
Default

Don't contact him, ask for more help on the forum. If you PM him, then the other forum visitors don't benefit from your question and his response.
__________________
A rectangular bear is just a polar bear after a coordinate transform. -- I dunno who.
A recent study shows that research causes cancer in rats. -- I dunno who said that one either.
Noggin is offline  
Old 1st November 2009, 02:15 PM   #8
Red face

Quote:
Originally Posted by Noggin View Post
Don't contact him, ask for more help on the forum. If you PM him, then the other forum visitors don't benefit from your question and his response.
[ask for more help on the forum.] it is my mean. not PM to him
sahu is offline  
Reply

Tags
adc, calculations, project, voltmeter

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Need help with project, AC ammeter to ADC?? Neophysics Electronic Projects Design/Ideas/Reviews 12 18th May 2009 08:01 AM
My first PIC Project. Voltmeter and another thing iflymyhelishigh Micro Controllers 13 31st March 2009 04:43 PM
Capacitor calculations? James1986 Electronic Projects Design/Ideas/Reviews 16 29th January 2009 12:22 PM
Capacitor calculations? James1986 Electronic Projects Design/Ideas/Reviews 3 7th December 2008 05:22 PM
question about my calculations dak246 General Electronics Chat 5 15th August 2004 09:50 PM



All times are GMT. The time now is 01:36 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker