0% found this document useful (0 votes)
2 views1 page

Microcontroller Cp Merged-7

The document outlines the pin configuration and working of an LCD display (LM016L / 16x2) connected to an AT89C51 microcontroller. It details the connections for data, control lines, and power, as well as the process for detecting key presses and displaying results on the LCD. Additional key pins on the AT89C51 are also mentioned for clock signal and reset functionality.

Uploaded by

shashankcm0313
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Microcontroller Cp Merged-7

The document outlines the pin configuration and working of an LCD display (LM016L / 16x2) connected to an AT89C51 microcontroller. It details the connections for data, control lines, and power, as well as the process for detecting key presses and displaying results on the LCD. Additional key pins on the AT89C51 are also mentioned for clock signal and reset functionality.

Uploaded by

shashankcm0313
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

o P3.

5 (RS) – Register Select

o P3.6 (RW) – Read/Write

o P3.7 (E) – Enable

3. LCD Display (LM016L / 16x2)

• 16x2 LCD means it can display 2 lines of 16 characters.

• Pin mapping to the microcontroller:

o D0–D7 → Connected to P2.0–P2.7 of AT89C51

o RS (pin 4) → P3.5

o RW (pin 5) → P3.6

o E (pin 6) → P3.7

o VSS (pin 1) → Ground

o VDD (pin 2) → +5V

o VEE (pin 3) → Contrast control (usually via a potentiometer)

Working Overview

1. The user presses a key on the keypad.

2. The AT89C51 detects which key was pressed by scanning P1.0–P1.7.

3. Based on the key, it executes logic (e.g., addition).

4. The result is sent to the LCD using Port 2 and control lines on Port 3.

5. The LCD displays the result.

Other Key Pins on AT89C51

• XTAL1/XTAL2 (Pins 18, 19): Connected to a crystal oscillator to provide the clock signal.

• RST (Pin 9): Reset input.

• EA (Pin 31): External Access – typically connected to Vcc to use internal memory.

• PSEN & ALE (Pins 29, 30): Used when interfacing with external memory (not in use
here).

Dept of ECE, BIET, Davanagere 5|Page

You might also like