You are on page 1of 4

Moving Message Display using 8051 and 16X2 LCD Introduction LCD-based moving-message displays are

becoming popular for transmitting information to large groups of people quickly. These can be used indoors or outdoors. We can find such displays in areas like railway platforms, banks, public offices, hotels, training institutes, nightclubs and shops. The objective of the projects is to provide non-commercial and purely academic insight into microcontroller assembly programming. The over all goal of the projects is to provide connectivity between microcontroller and a HD44780 compatible LCD. The LCD comes with a 14pin interface, which includes pins to receive power supply and ground as well. These 14pins have to be interfaced with microcontroller output ports to send instructions, which initialize the LCD in appropriate modes, and also to send data from the microcontroller is intended for display on the LCD output screen. A string or message can be displayed on LCD by sending its characters to data register after configuring the command register of LCD. To create dynamic effects, a specific command instruction is sent to LCD via microcontroller AT89C51. Moving message on LCD are ideal for all type of commercial establishments like Hotels, Restaurants, Retail Shops Banks, Airports, Clinics, Hospitals and other such places to get maximum attention of people. These displays attract customers to watch the display with curiosity and your scrolling message also is conveyed simultaneously.

Hardware Aspects of Moving Message Display Project:The moving message display is fabricated using these major components:1. Micro controller AT89s51 2. LCD 3. RS-232 4. Computer the moving message will be display on the LCD which will be controlled through microcontroller and the message will be sent by computer using RS232. The circuit diagram of the moving message display is shown in this post and how the whole process is completed is discussed here. The Microcontroller in this software is programmed such that it controls the LCD through an interface. An eight-bit interface between in the LCD and Microcontroller is programmed to transfer the data to be written on the LCD display screen. A further three out pins of the Microcontroller are used to generate control signals for the LCD. The three control signals are generated in the same pattern as discussed in the timing diagram in the previous chapters. The project, when looked in totality, can be seen as composing of three components, namely LCD, Microcontroller and serial port. The three components have been discussed independently until now and to give a complete picture, it is necessary to link these components. The linking is not
only logical but is also translated into hardware connections.


. The data register stores the data to be displayed o n the LCD. Command and Data. 32 I/O lines. A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. a clock and an I/O control unit. non-volatile memory for the program (ROM or flash). a six-vector two-level interrupt architecture. In this LCD each character is displayed in 5x7 pixel matrix. Watchdog timer. A command is an instruction given to LCD to do a predefined task like initializing it. serial port. highperformance CMOS 8-bit microcontroller with 8K bytes of in-system programmable Flash memory." billions of microcontroller units (MCUs) are embedded each year in a myriad of products from toys to appliances to automobiles. three 16-bit timer/counters.The command register stores the command instructions given to the LCD. The following picture describes a general block diagram of microcontroller. The AT89S52 provides the following standard features: 8K bytes of Flash.When we have to learn about a new computer we have to familiarize about the machine capability we are using. volatile memory for input and output (RAM). and clock circuitry. the user can then apply the microcontroller to the problems easily. timer/counters. The Power-down mode saves the RAM con-tents but freezes the oscillator. clearing its screen. By combining a versatile 8-bit CPU with in-system programmable Flash on a monolithic chip. Also called a "computer on a chip. and also to know about the size. a single vehicle can use 70 or more microcontrollers. In addition.The hardware is driven by a set of program instructions. and interrupt system to continue functioning. controlling display etc. The Idle Mode stops the CPU while allowing the RAM. The device is manufactured using Atmel’s high-density nonvolatile memory technology and is compatible with the industry-standard 80C51 instruction set and pinout. Introduction to 16 X2 LCD LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of applications. the Atmel's AT89S52 is a powerful microcontroller which provides a highly-flexible and cost-effective solution to many embedded control applications. 256 bytes of RAM. disabling all other chip functions until the next interrupt. number and the size of the registers. setting the cursor position. easily programmable. or software. two data pointers. The data is the ASCII value of the character to be displayed on the LCD. the AT89S52 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. A microcontroller is a single chip that contains the processor (the CPU). animations and so on. have no limitation of displaying special & even custom characters (unlike in seven segments). Once familiar withhardware and software. The reasons being: LCDs are economical. on-chip oscillator. These modules are preferred over seven segments and other multi segment LEDs. The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. This LCD has two registers. For example. namely. A 16x2 LCDdisplay is very basic module and is very commonly used in various devices and circuits. a full duplex serial port. and we can do it by studying the internal hardware design (devices architecture).89s52: The AT89S52 is a low-power.

Circuit diagram: Tools Used Software tools   Keil C compiler 8051 burner Hardware tools  Soldering iron .

059 mhz Resistances: 10k .    Soldering flux Solder Multi-meter Wires Hardware to be used: PCB 8051 controller 10uf LCD 16*2 33pf Crystal 11.