Friday, July 18, 2014

Send data from 8051 to Hyperterminal (PC/Computer)

My first post here was http://www.hobbyprojects.in/2013/03/serial-communication-between-pc-and-8051.html which went  viral. I had also made a video on sending data from 8051 to Hyperterminal(which will be present in PC). The video  was missing in the website. We will see in detail , the serial communication between Microcontroller and Hyperterminal.

How to send data from Microcontroler to Hyperterminal ?

Detailed Circuit diagram
The circuit consists of Microcontroller, Max232, COMPIM, inverters and virtual terminal as shown in the figure. We have used Free virtual serial ports emulator so that we can connect two or three communication ports together.

 Make the port of COMPIM as COM4. The data sent from Microcontroller will flow via COM4.

 Since, the Hyperterminal doesn't have many ports inbuilt, we will use virtual ports emulator to get the ports. Here we have connected COM2 and COM4 in pair. The data sent from COM4 will also flow through COM2 as they are connected.
 

Hyperterminal will be in the following in the computer. Start->All programs--> Accessories-->Communications-->Hyperterminal
 Here the port via which the hyperterminal makes communication with microcontroller is COM2.
Set the properties. Baud Rate should be as defined in 8051

Click on Echo typed characters locally
The data sent from Microcontroller will be displayed on Hyperterminal. Start the simulation, you can see the output in virtual terminal as shown below.


 The actual data, "Hello" which is transferred from Microcontroller (8051) to PC/Computer will be displayed in the hyperterminal. Thus, the data is successfully transmitted from 8051 to Hyperterminal.



 I have made a video too. Please watch here. The code is simple, if anyone needs the code. Please use the comment box. Thanks.



3 comments:

  1. please send me the proteus file and keil code at jokester4u@gmail.com !

    ReplyDelete
  2. Hello how to send hello when switch 1 is pressed and welcome when switch 2 is pressed

    ReplyDelete