This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Conversion of integer to ASCII for display

I wish to display the contents of a variable, probably an unsigned integer, on an lcd display driven from the 8051. I have written software to accept an array of characters and write these, so the ideal would be to creat a similat array from the variable.

I have tried the basic ways I know of,

sprintf (char_array, "%d", integer_value);

(very low tech) but dosent work.

Any pointers would be greatfully recieved,

Thank you,

Tim