PC Serial RS232 Port Interface To 16×2 LCD

Description

It’s an example of PC Serial RS232 Port Interface To 16×2 LCD.

Circuit Diagram

Detail

In this example we have interfaced 16X2 LCD with PC serial RS232 port. At PC side we have used a terminal software like hyperterminal that displays data coming from microcontroller and sends user input from keyboard to microcontroller. We can develop our customized software for serial communication on PC side. 8051 microcontroller dipslays data coming from PC on 16×2 LCD. This example also shows that how can we configure and use serial channel of 8051 microcontroller for sending and receiving data to PC.

In this example 8051 microcontroller first displays title information like

PC Serial Port Interface To 16x2 LCD

By    : Micro Digital
Web   : https://www.micro-digital.net
Email : udigital.solutions@gmail.com
Cell  : +92-332-555-8051

User inputs data in the following way

w,1,PC Serial RS232 

In the above example format whole line is comma separated. First character ‘w’ tells microcontroller that it is a write command. After 1st comma ‘1’ represents line number on which we want to write. After 2nd comma “PC Serial RS232 ” is the text to be displayed. So if we summaries above discussion then above line sent to microcontroller tells it that we want to write text “PC Serial RS232 ” on line number 1. Similarly we can write on 2nd line of LCD any text. For example

w,2,16x2 LCD Interface

In above example text is more than 16 characters and so whole text will not be displayed on LCD. Try to send text of not more than 16 characters.

Finally microcontroller shows text on 16×2 LCD according to command line sent. This is an interesting example in which we learn how can we configure 8051 serial channel, communicate with PC, extract data or text and command and then display text on 16×2 LCD.

For basic operation & components used in an 8051 based microcontroller based systems see
8051 Basic LED Flasher.

Free Downloads

PC-Serial-RS232-Port-Interface-To-16×2-LCD.zip
HD44780 Datasheet

Related Projects

8051 Basic LED Flasher

8051 To 16×2 LCD Interfaing

PC Serial RS232 Port Interface To 8051

PC Serial RS232 Port Interface To 7 Segment

8051 Calculator using PC Serial Port

8051 Digital Clock On 16×2 LCD

More Projects