I convert it to 4 bit chunks as in some example code on the piclist I.e. 12d = 000100011 and 20d=00100000 then I do something like this ANDLW 11110000 ;gets the top 4 bytes MOVWF temp ;put result into temp SWAPF temp,f ;moves the four left bytes to the four right bytes MOVF temp,w ;put it back into w ADDLW '0' ;converts to ascii - adds the ascii value for 0 to the result. ;w now contains the ascii value for whatever the number was Works for me - apologies for any errors above - this was not copied out of actual code - just used as an example. Dom ----- Original Message ----- From: "Jai Dhar" To: Sent: Friday, November 29, 2002 12:42 PM Subject: [PIC]: Int. to ascii conversion > Hi, > > I'm trying to figure out/obtain code so I can output a stored binary value to > an LCD. The number would be ranging from 0->255 (dec). I have tried looking on > the web, but the examples that I have found have no comments, so they are > useless for understanding. Any ideas? > > Thank you, > > Jai > > > > ---------------------------------------- > This mail sent through www.mywaterloo.ca > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics