how to print serial received data on LCD

developed by S4silver
license type - open source
created on - 11/12/2014
modified on - 11/14/2014
modification details - refactored
developer - Frank Hust Jincson
contact mail id -
web link -

#include <REGX51.H>
sbit RS = P3^6;
sbit EN = P3^7;

void delay(unsigned char del)
 unsigned int i,j;

void lcd_cmd(unsigned char cmd)
 P1 = cmd;

void lcd_data(unsigned char dat)
 P1 = dat;

int main()
 unsigned int i;
 unsigned char c;
 TH1=-6;     // 0xFD=253      9600


 lcd_cmd(0x38);       // 2 line 8 bit mode     
 lcd_cmd(0x01);  // Reset LCD Display
 lcd_cmd(0x06);  // Shift Display Right
 lcd_cmd(0x0C);  // Display ON cursor Blinking

 lcd_cmd(0x80);       // First Line First Display




People who look for this also look for the below topics

blinking of led or port
8051 interfacing DC motor
8051 interfacing with keypad
8051 interfacing with LCD
8051 interfacing with LCD and display Counter
LCD sample program
serial communication (RS-232) in 8051(polling method)
serial with interrupt
how to print serial received data on LCD.
8051 interfacing STEPPER motor
how to use TIMER in 8051
8051 interfacing SEVEN SEGMENT display
Timers with interrupt concept
how to generate PWM in 8051
4 bit LCD interfacing with 8051
8051 Tuitorial
how to install python
Embedded Documents (sensors, protocol...etc)  
Special NEWS