Jan-Erik: The left-justified output is NOT what I want to use, as has been pointed out to me, full scale would be 65472 and I would need to divide to get a correct decimal value. It is much easier to multiply on the 18F with its nice hardware multiplier! No, 1 mV resolution isn't needed. In fact, we will probably have something more graphic, like a simple bar-graph on the display where the pointer will change color to signal battery state. And this isn't a car battery, but similar - a GelCell pack being charged by a solar panel for remote unattended operation. Yes, the other end of the serial link can do the conversion, and certainly will do so in a working application. This "project" is a demonstration of concept kind of thing - I want to talk to this monitor board using a simple terminal program like TeraTerm. That way the boss/owner can test the operation without having to make changes to the present Win2K application. I thought typing [B]attery on the terminal window and having the remote monitor send back 13.24 volts would be more obvious than a binary number would be. Again, thanks to all for all the help. Roy ----- Original Message ----- From: "Jan-Erik Soderholm XA (TN/PAC)" To: Sent: Sunday, January 04, 2004 8:21 PM Subject: Re: [PIC]: 18Fxxx 16-bit Binary to ASCII conversion > Dave Dilatush wrote : > > You wrote... > > > > >...For a Left-justified > > >return the result would be 0..16368. > > > > No, it'll be 0...65472. > > And it will jump in large "steps" so there isn't > realy more resolution, just more work for the > binary -> ASCII conversion routine. > > > If you want to scale the input to the A/D with a voltage divider > > so that the full-scale A/D result corresponds to 16.384 volts, > > The question is, is a 1 mV resolution realy needed to > monitor a (car ?) battery ? > > And besided, couldn't the other side of the serial link > do the scaling of the ADC values ? Depending on what's > there, that could be easier. > > Jan-Erik. > > -- > 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: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.