Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 12th August 2004, 01:15 PM   (permalink)
Default LCD interaced with 89S52

I am doing a project in which I am displaying some menus in a LCD and at the same time I use a keypad to scroll and input values to my LCD. I am doing this in assembly programming language and using an ATMEL 89S52 microcontroller. I just want to know how can I read the the values that I input in my LCD. In other words, I want to read the characters or numbers displayed in the LCD at a particular cell location that I input using my keypad. Your help will be much appreciated! Thanks in advance!!
__________________
If you can dream it then you can do it.
giaracam is offline  
Old 12th August 2004, 04:20 PM   (permalink)
Default

The easist way would be to keep track of the keypad input before/after you write it to the LCD. However, if you are writing the keypad input to the same location of the LCD, you can read it back provided you are using a normal 8-bit mode of communication with the LCD. It may be possible in 4-bit mode, but I'm not sure. I have had a few occasions where I've had to use the LCD as a sorta RAM so I know it can be done. FWIW, even a simple 1x8 or 2x16 LCD _often_ has the same CGRAM as a 2x20 module so there are often a few spare bytes in there. I forget the exact command sequence, but look at the datasheet for the LCD controller and you will see how to read info back from it
BartSimpson is offline  
Old 13th August 2004, 03:27 AM   (permalink)
Default

There is a R/W pin on LCD to control read/write operation.
It can be implemented using 4 bit data input as well.
As stated by BartSimpson, the easier way is to 'remember' the LCD display in the microcontroller.
Define an array to store the characters, and just read from that.
It is not only easier, but also faster, as it reads directly from internal RAM
StupidDum is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:10 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker