----- Original Message -----=20 From: "Josh Koffman" To: Sent: Monday, January 19, 2004 4:15 PM Subject: Re: [PIC]: AD output to display Hello! I want to thank Josh for the suggestions he give me to solve my problem out. I found a nice code called BIN2BCD created by A Borowski so I want to thank even him if he look at this! I have looked at the datasheet on 16F870 and tryed to find out what the maximum rating is for input Vref on pin RA3 but I don=B4t see anything about this. Is it +5V ? Regards =C5keN > I'm sure you will get a bunch of replies to this, but I'll throw in = some > links as well. First off, you should specify what type of display you > are using, ie LED, LCD, VFD. Essentially the easiest way to accomplish > your goals will likely be to read the ADC, store it in a memory > location, then call a routine to parse that, convert it into three 0-9 > digits, and then display it. >=20 > For displays, check out: > http://www.piclist.com/techref/io/led/pic.htm > http://www.piclist.com/techref/io/lcd/pic.htm > For base conversions (ie binary to BCD), check: > http://www.piclist.com/techref/microchip/math/radix/index.htm >=20 > Hope this helps. >=20 > Josh > -- > A common mistake that people make when trying to design something > completely foolproof is to underestimate the ingenuity of complete > fools. > -Douglas Adams >=20 > Eke Neehr wrote: > > I want to get the value in the AD register > > ADRES on a PIC16F870 output and > > showed on a 3-digit display. > > Have done this with eight leds on PORTC > > and that works good with 0,6 V between > > each step but to show the right value on a > > display I don4t manage. >=20 > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu