Hi, > 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?
The novice approach: use two resistors of 7R and 5R in series (R > 1k to keep leak currents small) and measure the voltage drop across the 5R resistor. This should get you right into 0..5V. Similar approaches should work for any desired voltage range. Unfortunately, I am no expert on this field, so consider this hint to be WITHOUT WARRANTIES, WHATSOEVER, EITHER EXPRESSED OR IMPLIED (and so on). Regards, Raphael ------------------------------------------------------------------------- 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