
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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
1 / 1
This page cannot be seen from the preview
Don't miss anything!

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.
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.