Alphanumeric LCD


Interface routines for driving a alphanumeric Liquid Crystal Display module using 8051 micro-controller. LCD is driven by only 4 data lines ( 4-bit mode )

Toolkit:SDCC 8051 Development System

Location:/bipom/devtools/SDCC/examples/lcd/simple

Code Example


#include <stdio.h>
#include <stdarg.h>
#include <8052.h>
#include <mcs51\bipomlib\types.h>
#include <mcs51\bipomlib\bipomlib.h>
#include <mcs51\bipomlib\lcd.h>

void main()
{
   	// Initialize the serial port 

   	serinit(CBR_19200);
    
	puts( "\rSDCC LCD Test" );
	
	// Initialize the LCD 

	LCD_Init();

	// Write a simple message to the LCD 

	LCD_SetTopLine();
	LCD_Write("TOP LINE");
	
	LCD_SetBottomLine();
	LCD_Write("BOTTOM LINE");

	puts( "\rDone" );
	while(1);
}