If you have the read/write line connected to your PIC you can use the display memory on the lcd as ordinary memory (a little slow to read, but your users will never notice). Storage and display in one! You can even use equates to 'name' the memory positions (for the display memory) in the lcd. If I remember correctly line 1 starts at 0x80. Bye. -----Original Message----- From: Thomas N [mailto:thomasn101@HOTMAIL.COM] Sent: Friday, 27 July 2001 9:28 To: PICLIST@MITVMA.MIT.EDU Subject: [PIC]: Display Method. Need help! I am using the PIC16F877 with an 16x2 LCD module. I am trying to display the A/D results on the LCD, 4 numbers per each row. What I did is that I set aside 32 bytes of memory and each byte of memory represents one ASCII character on the LCD (16 bytes for Line 1 and the others for Line2). Then I store the A/D results in appropriate "coordinate" in the memory. After that, I "copy" the entire memory block (the 32 bytes block) to the LCD. Whenever I want to update a certain A/D number, I go to its memory location and update the number, then do the "copy" to the LCD again. Is there a better way to do this? There must be... Another "pain" I have to go through is to convert the A/D number to ASCII. Let say the A/D result is 173 decimal, I have to separate number 1, number 7, and number 3. Then covert them to ASCII, then store them in the memory block, then copy the memory block to the LCD. There must be a better way to do this too, right? Thank you in advance! Thomas _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads ************************************************************************* This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of the New South Wales Department of Education and Training. ************************************************************************* -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body