07 September 2006

LCD interfacing


This is an example how to interface to the standard Hitachi-44780 LCD using an 8051 microcontroller and SDCC as C Compiler. I use a standard 16-character by 2-line LCD module, see schematic below. Here, I use 4-bit interfacing.


Schematic: 4-bit interfacing 16x2 LCD

Source Code (For SDCC)
- lcd.h
- test_lcd.c


Related Links
- How to control a HD44780-based Character-LCD: The Industry Standard Character LCD
- Yet Another 8051-to-LCD Interface
- Interfacing: Converting 8-bit LCD communication to 4-bit

5 comments:

Nimish Dave said...

LCD Interfacing tutorials
You can find lcd interfacing tutorial using Proview32 on this website www.lcdinterfacing.infohttp://www.lcdinterfacing.info.


Interface LCD to 8051
http://www.lcdinterfacing.info/Interface...o-8051.php
Interface Nokia 6610 LCD
http://www.lcdinterfacing.info/Interface...10-LCD.php
Nokia 3310 LCD Interface
http://www.lcdinterfacing.info/Nokia-331...erface.php

In this tutorial we will interface Nokia 3310 LCD with AT89C51.The Nokia 3310 LCD is based on a PCD8544 48x84 pixels matrix LCD controller.more...

Dot Matrix Display
http://www.lcdinterfacing.info/Dot-Matri...isplay.php
What makes the text scrolpng on the sipcon chips? The heart of scrolpng display is dot matrix led display unit.more...


Seven Segment Display
http://www.lcdinterfacing.info/Seven-Seg...isplay.php
The seven segment display is one of the commonly used display devices in the world of electronics.more...

Unknown said...

Can anybody suggest me interfacing Renesas micro wuth colored LCD having samsung driver s6b3301

Unknown said...

can u tell me the how to interface 128X64 LCD display with micro controller P89v51rd2

cs said...

#define LCD_en P2_4
#define LCD_rs P2_5

this 2 part gt error?should be
#define LCD_en P2^4
#define LCD_rs P2^5
?

npeducations said...

Thanks for LCD.h code, you make my work simple. found similar things
http://www.npeducations.com