do not move the cursor relative to an existing position. if you once = have a positioning error, you'll keep it forever. set the cursor absolutely to the new position (is even faster) and = overwrite. the first position of line #2 is usually absolute position 40. tino >-----Original Message----- >From: Cherry, Mark [mailto:MCherry@NTCOLLEGE.COM] >Sent: Monday, January 26, 2004 6:47 PM >To: PICLIST@MITVMA.MIT.EDU >Subject: [PIC:] New to LCD's, Need assistance > >I am new to using LCD's. I am currently interfacing, via 4 line = interface, >a 16f84a and LCD using the Hitachi 44780 controller, 2x16 = configuration. > >I have most of the code working for display except one part. That part >will >be the question to follow. > >The display will look like the following: > >Line one text is static >Line two Prompt: _ _ _ > >Where _ _ _ is variable numeric information, 3 positions. > >My code displays the line one static information and the line two = prompt, >positioning the cursor ready for the variable information. Once I = display >the 3 char vari. Info., I am having a problem getting it back the four >spaces to overwrite those characters with new information. > >I have tried to shift the cursor back three, that leaves the first >character >of previous info displaying. Went back four then forward one, but have >some >glitch making that work. > >Any suggestions? I probably missed, or misunderstood a command = available >with the controller, but not sure where or what. > >Thanks in advance for any assistance. > >Mark Cherry, WT6P >Sacramento, CA > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 > >-- >http://www.piclist.com hint: To leave the PICList >mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads