Unit-Iv Microcontroller (EC405) AVR Counters, Interrupt, Serial Input/output Data
Unit-Iv Microcontroller (EC405) AVR Counters, Interrupt, Serial Input/output Data
Microcontroller (EC405)
AVR Counters, interrupt,
serial input/output data
Setup for parallel data transfer is not cost effective but is a very fast method of
communication. Serial communication is cost effective because it requires only
a single line of connection but on the other hand is a slow process in
comparison to parallel communication.
Serial data communication
There are two methods for serial data communication (i) Synchronous and (ii)
Asynchronous communication. In Synchronous communication method
complete block (characters) is sent at a time. It doesn’t require any additional
bits (start, stop or parity) to be added for the synchronization of frame. The
devices are synchronized by clock. And in asynchronous communication data
transmission is done byte by byte i.e., one byte at a time. The additional bits
are added to complete a frame. In synchronous communication the frame
consists of data bits while in asynchronous communication the total number
of bits in a frame may be more than the data bits
Types of synchronous
transmission
There are three modes of transmission
Modes
simplex, halfof transmission
duplex, and full duplex.
Transmission mode describes the direction,
of flow of signal between two connected
devices. The main difference between
simplex, half duplex, and full duplex is that in
a simplex mode of transmission the
communication is unidirectional whereas, in
the half-duplex mode of transmission the
communication is two directional but the
channel is alternately used by the both the
connected device.
Modes of transmission
On the other hand, in the full duplex mode
of transmission, the communication is bi-
directional, and the channel is used by both
the connected device simultaneously.