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

Re: Battery supplied PIC and A/D

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







Battery supplied PIC and A/D
PostPosted: Wed Nov 07, 2001 12:57 am     Reply with quote

Can anyone suggest how to generate a stable reference on a
battery operated PIC system? Don't want the ref changing as
the battery discharges.
___________________________
This message was ported from CCS's old forum
Original Post ID: 994
John Kennedy
Guest







Re: Battery supplied PIC and A/D
PostPosted: Wed Nov 07, 2001 2:59 am     Reply with quote

:= Can anyone suggest how to generate a stable reference on a
:=battery operated PIC system? Don't want the ref changing as
:=the battery discharges.

Depends on the accuracy you need for the ref. A cheap version I would use the TL431 shunt regulator this will give a 2.5V reference at 2\% accuracy. If you need a lower voltage or greater accuracy then you can buy precision reference devices of varying voltages.

A resistor would be needed between the reference device and the battery supply to limit the current flow through it.

Hope this helps

JFK
___________________________
This message was ported from CCS's old forum
Original Post ID: 998
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: Battery supplied PIC and A/D
PostPosted: Wed Nov 07, 2001 8:11 am     Reply with quote

:= Can anyone suggest how to generate a stable reference on a
:=battery operated PIC system? Don't want the ref changing as
:=the battery discharges.


Linear has a good selection and you can order direct.
<a href="http://www.linear.com/" TARGET="_blank">http://www.linear.com/</a>
___________________________
This message was ported from CCS's old forum
Original Post ID: 999
Sherpa Doug
Guest







Re: Battery supplied PIC and A/D
PostPosted: Wed Nov 07, 2001 4:51 pm     Reply with quote

One nice chip is the MAX187. It is an A/D that runs off the +5v supply and gives you its 4.096V reference to drive your sensor.

Sherpa Doug

:=:= Can anyone suggest how to generate a stable reference on a
:=:=battery operated PIC system? Don't want the ref changing as
:=:=the battery discharges.
:=
:=
:=Linear has a good selection and you can order direct.
:= <a href="http://www.linear.com/" TARGET="_blank"> <a href="http://www.linear.com/" TARGET="_blank">http://www.linear.com/</a></a>
___________________________
This message was ported from CCS's old forum
Original Post ID: 1005
Bob Lin
Guest







Re: Battery supplied PIC and A/D
PostPosted: Sat Nov 10, 2001 8:37 am     Reply with quote

:= Can anyone suggest how to generate a stable reference on a
:=battery operated PIC system? Don't want the ref changing as
:=the battery discharges.
If battery supplyied PIC .That's Vcc between 3V to 5V.
TL431 is very cheap about USD 10 cents.
I using Vcc=Vref mode.
Connect is vcc..>resistor ..>AN0..>TL431..>GND
Tl431 is 2.5V.
So AN0=2.5V
Analog input range from 0 to Vcc.
example 1 (PIC16F877 10 bit A/D)
If a/d convert result from pin AN0 is 512 . I get Vcc=5V.
{1 LSB=2.5V/512=4.88 mV.Full scale(Vcc)=4.88mV*1024=5V}
If AN1 pin input result = 800 .I get AN1=3.906V.
{ 4.88mV * 800 =3.906V}
example 2
If a/d convert result form pin AN0 is 700. I get vcc=3.657V.
{ LSB=2.5V/700=3.57mV. Vcc=3.57mV *1024 =3.657V)
If AN1 pin input result = 800 .I get AN1=2.857V.
{ 3.57mV * 800 =2.857V}

Above is very useful for everyone.
BoB Lin (Taiwan)
___________________________
This message was ported from CCS's old forum
Original Post ID: 1047
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