Jan-Erik and others: I'm sorry if my question sounded like that - it was not meant that way. It was my thought that this was a very common problem which had probably been solved many times before, and which would be readily available on something like the PIClist. It seemed a waste of time to re-invent the wheel, so to speak. And in fact, it was there in several different forms, all of which I do appreciate. And again, you and others are correct regarding the Left-justified value - just carelessness on my part, as I was referring to a number I was thinking of using for the output scale and didn't go the rest of the way to see what would happen. At the moment I have not added the A/D code to the loop - I wanted to get the display output up first. This is what happens when you are trying to go too fast, I guess. I've been down that road before. And finally, thank you again, your code segment works just fine, as do several others I received in answer to my question. Thanks to everyone who answered for their help. Roy J. Gromlich ----- Original Message ----- From: "Jan-Erik Soderholm XA (TN/PAC)" To: Sent: Sunday, January 04, 2004 8:31 PM Subject: Re: [PIC]: 18Fxxx 16-bit Binary to ASCII conversion > Roy J. Gromlich wrote : > > > > I would be interested in a good math package which is > > properly documented as to requirements, operation and > > limitations. I have found several packages, including > > one on the Microchip web site, but the documentation > > is limited and I don't have a lot of time to spend (at > > the moment) tuning & tweaking the software... > > Fine. I can understand your situation. > > Just a minor note... > > Asking for others (free) help to save on ones own (highly > valued ?) time, usualy isn't the best tactics when > asking. It *can* make someones less willing to help... > > That said, > > I think that it will be hard to find a "math package" > that does *excatly* what you need. Anyway, there have been > a number of bin->ascii conv routines posted now. I'd take > one of the 18-series specific ones and build from that. > > I have a 10-bit binary to packed BCD routine written for > the 18-series that I could post (when I'm back from my > current business trip in a few days). It was not build > for speed, but rather for readability and to be easy to > expand to more bits. > > 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.