If you want the routine in C here it is: /*--------------------------------------------*/ /* d - number to display */ /* dig - number of digits */ /* dec - decimal point position */ /*--------------------------------------------*/ void print(unsigned long d, char dig, char dec) { unsigned long n; char i,j; n=1; for(i=dig;i!=1;i--) n*=10; while(n!=1) { if(d>=n) { j=(d/n) % n; putch(j+0x30); d-=j*n; } else putch('0'); n/=10; if(--dig==dec) putch(','); } putch((d % 10)+0x30); } Friendly Regards Octavio Nogueira =================================================== nogueira@propic2.com ICQ# 19841898 ProPic tools - low cost PIC programmer and emulator http://www.propic2.com =================================================== ----- Original Message ----- From: Henrik HolmgŒrd To: Sent: Thursday, June 08, 2000 8:01 AM Subject: 32bit binary to ASCII conversion Hi all I have a project where I have to convert a 32 bit binary or hex number to ASCII to be displayed on a LCD. Does some one on this list have done this before, if so are you willing to share the solution with me or give me some hints. I have done decimal to ASCII conversion no problem, but now my project end up with a 32 bit number and then I have only very complicated solutions. tnx in advance. \||||||/ _____oo0o__( o o )__o0oo_____ (_) Henrik HolmgŒrd