StevenStudent
Newbie
- Joined
- Sep 22, 2013
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,366
How to interface 16×2 LCD and 4×4 keypad with AT89S52 using Keil uVision4
Hello.
I need assistance with initializing the 16×2 LCD with the microprocessor. I don't need to know how the initializing is done. All I need is a include file (something like lcd.h) and a simple Keil uVision4 fully copy-pasteable program that will initialize my LCD and demonstrate a simple example of a function that can read the value of the keypad and another function that can write the keypad’s value to the LCD.
The LCD is connected as follows:
Port 2 (0-7) = LCD data lines
Port 3_0 = RS
Port 3_1 = E
The keypad is connected to Port 1.
The keypad's opperation is not as crutial as the LCD's. I can figure it out without assistance. All I rely need is the LCD library and the C code that contains a working LCD write function. This I will copy into my C file of my uVision4 project, compile the hex file and plug it into my simple Proteus circuit that I have explained above.
The RW line is grounded as I don’t want to read from the LCD. I just want to write to it. I will run this simulation on Proteus to confirm its operation.
Thank you.
Hello.
I need assistance with initializing the 16×2 LCD with the microprocessor. I don't need to know how the initializing is done. All I need is a include file (something like lcd.h) and a simple Keil uVision4 fully copy-pasteable program that will initialize my LCD and demonstrate a simple example of a function that can read the value of the keypad and another function that can write the keypad’s value to the LCD.
The LCD is connected as follows:
Port 2 (0-7) = LCD data lines
Port 3_0 = RS
Port 3_1 = E
The keypad is connected to Port 1.
The keypad's opperation is not as crutial as the LCD's. I can figure it out without assistance. All I rely need is the LCD library and the C code that contains a working LCD write function. This I will copy into my C file of my uVision4 project, compile the hex file and plug it into my simple Proteus circuit that I have explained above.
The RW line is grounded as I don’t want to read from the LCD. I just want to write to it. I will run this simulation on Proteus to confirm its operation.
Thank you.
Last edited: