Here we are providing you the source code of the Interfacing 16x2 LCD with 8051 Microcontroller on Breadboard. One important thing you must understand - we have used MMT_LCD.H header file which is provided by Magicmantechnologies (www.mmtlab.in).This file should be used for educational purpose only. Do not try to sell. Here is the source code of this chapter. Copy it and download the header file by clicking on the download icon in the bottom. The code wouldn't run without the header file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//**************************************************************************************** | |
//www.go8051.com | |
//Chapter 11 | |
//Interfacing 16x2 LCD with 8051 Microcontroller on Breadboard | |
//Created By go8051.com | |
// Open source | |
// MMT_LCD.H custom library from www.mmtlab.in Magicman Technologies | |
//email : 8051blog@gmail.com | |
//**************************************************************************************** | |
#include<reg51.h> // Header file for 8051 microcontroller | |
#include<MMT_LCD.H> // Custome LCD library from www.mmtlab.in | |
void main() | |
{ | |
ALCD_INIT(); //ONE TIME EXECUTE | |
ALCD_CLEAR(); //DISPLAY CLEAR | |
ALCD_GOTO(1,1); //1st row 1st coloumn | |
ALCD_STRING("Hello There"); // Text to be displayed | |
ALCD_GOTO(3,2); //1at row 3rd coloumn | |
ALCD_STRING("Play with ME !"); // Text to be displayed | |
while(1); //Infinite while loop | |
} | |
// Mention proper credits using mmt_lcd.h header file | |
// do not try to sell. This library is copyrighted | |
// Use it for educational purpose only |
Here is the complete c source code of Interfacing 16x2 LCD with 8051 Microcontroller on Breadboard. Just click on the download button to download zip file.
No comments:
Post a Comment
Stuck Somewhere ? Comment Your Queries and Experts will Guide You.