Description

In this tutorial we will learn serial port interfacing with 8051 (89c51) microcontroller. Serial port (MAX232) interfacing is require when we want to communicate our hardware to the computer system. In automation, we required to control our hardware by seeing on the computer screen. There for here we will know serial port interfacing with 8051 microcontroller and sending and receiving the date with computer.

Program

Example 1: Write a embedded C program to transfer the ASCII character on the port 2 of 8051 microcontroller at 9600 baud rate.
 

Circuit Diagram

Serial port interfacing with 8051Example 2: Write a embedded C program to receive a character ‘E’  from the 8051 microcontroller at 9600 baud rate.

Application

  • Industrial Automation
  • Serial data transmission on hardware

Why we require Serial port (MAX232) interfacing ?

Serial port (MAX232) interfacing is require when we want to communicate our hardware to the computer system. In automation, we required to control our hardware by seeing on the computer screen. There for here we will know serial port interfacing with 8051 microcontroller and sending and receiving the date with computer.