piclist 2002\12\31\160912a >
Thread: fixed point to ASCII on 16F87x?
www.piclist.com/techref/microchip/devices.htm?key=16F
picon face BY : 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.

Best regards,

Spehro Pefhany --"it's the network..."            "The Journey is the reward"
speffKILLspamspamKILLspaminterlog.com             Info for manufacturers: http://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 listservspamBeGonespamspam_OUTmitvma.mit.edu with SET PICList DIGEST in the body
<5.1.1.6.2.20021231160646.02a1bec0@mail.interlog.com>

In reply to: <Pine.LNX.4.33.0212311553260.3090-100000@oak.phpwebhosting. com>
See also: www.piclist.com/techref/microchip/devices.htm?key=16F
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) fixed point to ASCII on 16F87x?

month overview.

new search...