Iguana Labs will be closing its doors for good around August 11th.
We will keep lowering our prices until our inventory is gone.
Click here for the latest price list and availability.
Iguana Labs                   800-297-1633
Back To Previous PageProductsView Cart ContentsCheckout

LCD
Module
$29.00

Microcontroller
Beginner Kit
$149.00



Sign  Up For
Newsletter
 

Feedback
 

Shipping
Information
 

 

Using the LCD Module with an 8051 Microcontroller

The LCD Module can easily be used with an 8051 microcontroller such as the AT89C2051 included with the microcontroller beginner kit.

The LCD Module comes with a 16 pin connector. This can be plugged into the breadboard as shown below.

The pins on the 16 pin connector of the LCD Module are defined below. The table also shows how to connect each pin to the 2051 microcontroller. To connect the LCD Module to a standard 40 pin 8051, use the pin names listed below to find the correct pin number on the 8051 microcontroller. The example programs below do not need to be modified to work with a 40 pin 8051.
 
LCD
Connector
Function
2051
Pin Number & Name
LCD
Connector
Function
2051
Pin Number & Name
1
Data Line 6
18, P1.6
16
LCD RS
7, P3.3
2
Data Line 1
13, P1.1
15
Data Line 5
17, P1.5
3
Power - 5VDC
14
LCD Read/Write
6, P3.2
4
Not Connected
13
Data Line 0
12, P1.0
5
Display Adjust
12
Data Line 4
16, P1.4
6
Data Line 7
19, P1.7
11
LCD Enable
8, P3.4
7
Data Line 2
14, P1.2
10
Data Line 3
15, P1.3
8
Ground
9
Not Connected

The basic 2051 configuration is shown below. Build this circuit and then you will be ready to add the LCD Module.

After you have built a basic 2051 configuration as shown above, you can connect the LCD Module as shown in the table above.  In addition, you need to add the following connections.
    Connect LCD Pin 3 to Vcc (5 Volts).
    Connect LCD Pin 8 to Ground.
    Connect a 510 ohm resistor between LCD Pin 5 and ground.
    Connect a 2.2k ohm resistor from LCD Pin 2 and Vcc.
    Connect a 2.2k ohm resistor from LCD Pin 13 to Vcc.
Example Programs:
    lcd2051.asm - This is a simple example program that demonstrates the basic commands used to write on the LCD screen. It clears the screen, writes 'Iguana Labs' on line 1, writes 'LCD Example' on line 2, then repeats.

    lcdclock.asm - This program uses the LCD as a clock. The screen shows Hours, Minutes, Seconds, and Hundreths of Seconds. The program uses Timer 0 and the Timer 0 interrupt to keep accurate track of time.

    You may also want to get the Sensor Kit. The Sensor Kit includes all the extra parts you need to communicate with a PC through the serial port and do the Data Collection Project, the Light Sensor Project, and the Temperature Sensor Project.

Catalog -- Support -- Privacy Policy -- About Us
This page last updated on January 11, 2005.