Kyle, I am using the CCs compiler and to output text onto the LCD I use the putc() function and set up string arrays of the text I want to output. So would I be right in saying that printf is an easier way than putc()? Going back to my original question, if for example I had a value of 200 stored in a variable called NUMBER and I wanted to output the value stored in number onto the LCD screen could I simply just do: printf("value in memory is %02x",NUMBER); the 2 denotes the width of the field and %x denotes to an unsigned hex integer. Regards, Dean Matthews -----Original Message----- From: Kyle Palmer [mailto:kyle.palmer@SOUNDPRINT.COM] Sent: 18 March 2002 22:24 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: displaying a value on LCD Depending on your C compiler, you should have some form of sprintf or printf to format numbers to a string. I know that this is easy to do with CCS using a target function. Kyle -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of MATTHEWS, DEAN (D.) Sent: Monday, March 18, 2002 12:49 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: displaying a value on LCD I am currently reading in an analogue value and converting it to digital using a PIC16F877 written in C. I display the digital value (stored in value=Read_adc()) on 10 leds to confirm that my a/d converter is working correctly. I am also able to output information and text onto an LCD screen. What I would ideally like to do is display the a/d conversion stored in value on the LCD screen. Can anyone recommend a quick and easy way to do this. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- 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