fixed point to ASCII on 16F87x?
Spehro Pefhany email (remove spam text)
At 03:57 PM 12/31/02 -0500, you wrote:
>Is there a routine available which will convert an integer (8- or 16-bit)
>value to a series of ASCII values for the PIC16F87x? There doesn't appear
>to be a Microchip Application Note on it.
>The best I've been able to do so far is convert it to a float (with the
>floating point library) and then use AN670 to convert the float to ASCII.
>Surely there's a better way?
Convert it to BCD and then the conversion to ASCII is trivial-
add '0' - the ASCII character for zero- to each BCD digit.
Spehro Pefhany --"it's the network..." "The Journey is the reward"
interlog.com Info for manufacturers: speffhttp://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email mitvma.mit.edu with SET PICList DIGEST in the body listserv
In reply to: <Pine.LNX.email@example.com. com>
See also: www.piclist.com/techref/microchip/devices.htm?key=16F
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the