Docsity

lecture9 lecture 10 11, Summaries of Microprocessors

Partial preview of the text

Download lecture9 lecture 10 11 and more Summaries Microprocessors in PDF only on Docsity!

SERIAL COMMUNICATION

Dr Sameen Ahmed Malik, PhD, R.Eng Department of Biomedical Engineering UET Lahore – Narowal Campus

COMMUNICATION

Communication means interchange of information between individuals through

written documents, verbal words, audio and video lessons.

SERIAL COMMUNICATION

In contrast to parallel communication, which is half duplex, serial

communication is full duplex, i.e., transmission and receipt of signals

can occur simultaneously.

It is the most popular mode of communication protocol for most

instrumentation devices.

It is also popular in computer devices, peripheral devices and

integrated circuits, which are provided with one or more serial ports,

resulting in no additional hardware requirements for serial

communication.

SERIAL COMMUNICATION VS PARALLEL COMMUNICATION Serial Serial communication sends data a single bit at a time. Consequently, fewer I/O (input-output) lines are needed to implement it than for parallel transmission. This results in less interference and a reduction in space requirements. It also reduces the cost of the embedded system and enables it to reliably transfer data over long distances. Data communication equipment (DCE) such as modems make use of serial data transfer. Parallel More I/O lines are needed to implement parallel communication. When data is sent in a block of 8,16 or 32 bits, each bit needs its own physical I/O line. The speed of parallel transfer is faster than serial transmission but needs a larger number of I/O lines. Parallel data transfer is used in personal computers to exchange data with internal components such as the random access memory (RAM) or the CPU.

SERIAL COMMUNICATION VS PARALLEL COMMUNICATION

SERIAL COMMUNICATION ADVANTAGES

There are several advantages with serial communication.

ØAs there are fewer conductors in contrast to parallel communication, the cross-talk

issue is significantly less.

ØInterconnecting cables are fewer, and there is no need for a

serializer/deserializer in any case.

ØThe data transfer rate, however, may be low in comparison to parallel

communication. Nevertheless, the clock skew problem that often happens between

different channels of communication is not an issue with serial communication.

Serializer/deserializer A serializer/deserializer consists of functional blocks in a chip that are used to convert parallel data into serial data, allowing designers to speed up data communication without having to increase the number of pins. Skew skew is a phenomenon in synchronous digital circuit systems (such as computer systems) in which the same sourced clock signal arrives at different components at different times. The instantaneous difference between the readings of any two clocks is called their skew.

MODE OF SERIAL DATA TRANSMISSION Binary pulses are used to transmit data in serial data transmission. The binary digit one is represented by five volts or a HIGH logic. Binary zero is denoted with a logic LOW or zero volts. In order to implement serial communication, a source and destination are required. They are also referred to as the sender and receiver. Various types of serial communication can be employed and are designated as Simplex, Half Duplex, and Full Duplex

MODE OF SERIAL DATA TRANSMISSION

HALF

DUPLEX

MODE

Half Duplex mode permits the source and

destination to both be active, but not

simultaneously.

Transmission only occurs in one direction at

a time.

A case in point can be seen when using the

Internet.

When you make a request from your

computer for a webpage, the server

processes the request.

It then becomes the sender when returning

the information to your computer, which is

now the receiver.

FULL DUPLEX MODE Full Duplex mode is the world’s most widely used form of serial communication. Source and destination are both active and can send and receive data simultaneously. Your smartphone is a prime example of full duplex mode in action.

A UNIVERSAL ASYNCHRONOUS RECEIVER/TRANSMITTER (UART) UART or Universal Asynchronous Receiver Transmitter is a dedicated hardware associated with serial communication. The hardware for UART can be a circuit integrated on the microcontroller or a dedicated IC. This is contrast to SPI or I2C, which are just communication protocols. UART is one of the most simple and most commonly used Serial Communication techniques. Today, UART is being used in many applications like GPS Receivers, Bluetooth Modules, GSM and GPRS Modems, Wireless Communication Systems, RFID based applications etc.

A UNIVERSAL ASYNCHRONOUS RECEIVER/TRANSMITTER (UART) If you remember older computer systems, devices like Mouse, Printer and Modem are connected using a heavy connectors at the back. All these devices communicated using UART. Even though USB has replaced all types of communication standards on computers and other devices, UART is still being used in the above mentioned applications. Almost all microcontrollers have dedicated UART hardware built in to their architecture. The main reason for integrating the UART hardware in to microcontrollers is that it is a serial communication and requires only two wires for communication.

A UNIVERSAL ASYNCHRONOUS RECEIVER/TRANSMITTER (UART)

A UNIVERSAL ASYNCHRONOUS RECEIVER/TRANSMITTER (UART) The letter ‘A’ in UART stands for Asynchronous i.e. there is no clock signal to synchronize or validate the data transmitted from transmitter and received by the receiver (Asynchronous Serial Communication). This is in contrast to Synchronous Serial Communication, which uses a clock signal that is shared between the transmitter and receiver in order to “Synchronize” the data between them. If there is no clock (or any other timing signal) between the transmitter and receiver, then how does the receiver know when to read the data? In UART, the transmitter and receiver must agree on timing parameters beforehand. Also, UART uses special bits at the beginning and ending of each data word to synchronize the transmitter and receiver. In UART based Serial Communication, the transmitter and receiver communicate in the following manner. The UART on the sender device i.e. the transmitting UART receives parallel data from the CPU (microprocessor or microcontroller) and converts it in to serial data. This serial data is transmitted to the UART on the receiver device i.e. receiving UART. The receiving UART, upon receiving the serial data, converts it back to parallel data and gives it to the CPU.