The main purpose of communication is to transfer information from source to destination. Communication between Microcontroller have two ways to transmit data on line.
1-Serial Transmission
2-Parallel Transmission
Serial Transmission
When using the Serial Transmission, we transmit only one bit at a time. It simply means there is only one transmission line through which the bit is transmitted.
Serial communication |
Parallel Transmission
When using the Parallel Transmission, we transmit an entire byte of data at a time. Hence we need 8 lines for transfer 8-bit data.
Parallel communication |
In order to understand the Serial communication and the difference between these two. Let's take a look at the following Proteus example.
>> First Open Proteus ISIS
>> Press on P for choosing component.
>> Search COMPIM
>> In virtual instrument mode select virtual terminal as show below.
>> Make connection as shown below.
>> Now double click on the COMPIM and set the properties as shown below.
>> Here , i have selected COM1 and my baud rate is 9600.
>> Similarly open the property of the virtual terminal and set the baud rate is 9600.
>> Now run the simulation.
>> By pressing any key from your keyboard, you will see the TXD pin will be high, which indicate that one bit is transfor as shown below.
In the next tutorial we will see parallel transmission.
No comments:
Post a Comment