PDA

View Full Version : Cursor position



Jan Dvorak
11-25-2006, 06:31 PM
Hello,
I need to save·actual cursor position (into Byte variable) on parallel LCD display. I have BS2p24. I had tried it with LCDIN command, but I wasn't succesful. Is there any possibiliy how to solve my problem?
Thank you very much
Jan

Chris Savage
11-26-2006, 06:05 AM
Jan,

·· On a Parallel LCD Display you can read the BUSY Flag/Address Register.· This is the information you need.· You will need to read this register and mask BIT7 to get the current address.· This address is affected by previous instructions and could be Data or CG, so if you only set your CGRAM once during initialization (or not at all) then you shouldn't have any problems.· Otherwise it will only be valid after a write to the Display RAM.· I hope this helps.· Take care.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support