Asynchronous Serial Communication-Programming and Computer Logic Design-Lab Report, Exercises of Digital Logic Design and Programming

This is lab report for Programming and Computer Logic Design course lab. It was submited to prof. Rohit Gill at Ankit Institute of Technology and Science. It includes: Asynchronous, Serial, Communication, Programmable, Interrupt, Controller, Microcontroller, Hyper, Terminal, Function, Module

Typology: Exercises

2011/2012

Uploaded on 07/24/2012

pariya
pariya 🇮🇳

4.5

(4)

21 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
LAB REPORT
EXPERIMENT # 8:INTRODUCTION TO ASYNCHRONOUS
SERIAL COMMUNICATION USING PIC18F4520’S BUILT IN
SERIAL PORT
PROCEDURE:
In this experiment we have completed our task of communicating microcontroller with
PC using asynchronous serial transmission on hyper terminal. So, firstly we have made a
read and write function in which we have transmitted data through write function and
then received data using read function. This work is done in following steps:
1- We set the baud rate to 9600.
2- We configured serial port using TXSTA and RCSTA registers
3- Then we communicate using hyper terminal
4- Firstly we printed welcome message
5- Then we transmitted data using transmit function
6- It is then displayed on the hyper terminal.
This task was achieved by making read function firstly in which it will read the message
until a space comes. Then we made write function which will write the message on hyper
terminal. In short it will transmit message on the hyper terminal.
If it will not be working like this then it will report an error on the screen.
IC’S USED:
This serial communication was achieved by using MAX232 IC and PIC18F4520 IC. It
was actually communication between PC and microcontroller so we have used RS232
standard. So, we connected the DB9 through PIC MODULE and started communication
with PC.
docsity.com

Partial preview of the text

Download Asynchronous Serial Communication-Programming and Computer Logic Design-Lab Report and more Exercises Digital Logic Design and Programming in PDF only on Docsity!

LAB REPORT

EXPERIMENT # 8:INTRODUCTION TO ASYNCHRONOUS

SERIAL COMMUNICATION USING PIC18F4520’S BUILT IN

SERIAL PORT

PROCEDURE:

In this experiment we have completed our task of communicating microcontroller with PC using asynchronous serial transmission on hyper terminal. So, firstly we have made a read and write function in which we have transmitted data through write function and then received data using read function. This work is done in following steps: 1- We set the baud rate to 9600. 2- We configured serial port using TXSTA and RCSTA registers 3- Then we communicate using hyper terminal 4- Firstly we printed welcome message 5- Then we transmitted data using transmit function 6- It is then displayed on the hyper terminal. This task was achieved by making read function firstly in which it will read the message until a space comes. Then we made write function which will write the message on hyper terminal. In short it will transmit message on the hyper terminal. If it will not be working like this then it will report an error on the screen.

IC’S USED:

This serial communication was achieved by using MAX232 IC and PIC18F4520 IC. It was actually communication between PC and microcontroller so we have used RS standard. So, we connected the DB9 through PIC MODULE and started communication with PC.

docsity.com