Ok, so you think I best divide the voltage, say, by 2.5, and then 
calculate inside the pic...
Well that's not a bad idea. I'm thinking to use multicell batts (up to 
12 v) and single cell Ni-xx (which are 1.2V).
It's irrelevant if I divide the 1.2V by 2.5 (= 0,48V), because I could 
tie the result level (0,48V) to Vref+ . So, I would not lose any precision.
The same applies to say 12V, divided by 2.5 (=4,8V)...
The only precaution there is not to be over 5 in Vref (Before the 
divider: 12.5V) ... correct?

Thanks guys.


atrick carosso escribió:
> Use two resistors to lower the voltage!
>
> --- Markos <[EMAIL PROTECTED]> wrote:
>
>   
>> Hi guys,
>>              maybe this is a little offtopic, but
>> i'm sure you could 
>> help me. I'm implementing a simple battery charger,
>> and I need to 
>> messaure voltages ranges from 0 to 12 V.
>> ¿Could I use the PIC integrated ADC to messaure
>> above 5 V (provided that 
>> I use the voltage reference pins tied to 0 and 12 V,
>> for example)? Most 
>> external ADC have a 0 to 5V input range....
>> How would you guys solve this? Any Ideas?
>>
>> Thanks in advance.
>>
>>
>>
>>     
> -------------------------------------------------------------------------
>   
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get
>> the chance to share your
>> opinions on IT & business topics through brief
>> surveys-and earn cash
>>
>>     
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>   
>> _______________________________________________
>> Sdcc-user mailing list
>> Sdcc-user@lists.sourceforge.net
>>
>>     
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>   
>
>
>
>  
> ____________________________________________________________________________________
> Never miss an email again!
> Yahoo! Toolbar alerts you the instant new Mail arrives.
> http://tools.search.yahoo.com/toolbar/features/mail/
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to