92% found this document useful (12 votes)
9K views

Microprocessor Interfacing - Parallel, Serial

The document discusses parallel and serial interfaces for connecting microprocessors to peripheral devices. Parallel interfaces can use single or double handshaking to synchronize data transfer, while serial interfaces often use an 8251 USART chip to convert parallel data to serial. RS-232C standards define the connections and pinouts for serial communication between a DCE (microprocessor) and DTE (peripheral device) over long distances.

Uploaded by

Mim Fauzi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
92% found this document useful (12 votes)
9K views

Microprocessor Interfacing - Parallel, Serial

The document discusses parallel and serial interfaces for connecting microprocessors to peripheral devices. Parallel interfaces can use single or double handshaking to synchronize data transfer, while serial interfaces often use an 8251 USART chip to convert parallel data to serial. RS-232C standards define the connections and pinouts for serial communication between a DCE (microprocessor) and DTE (peripheral device) over long distances.

Uploaded by

Mim Fauzi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

http://tulisnota.blogspot.

com/

Parallel Interfaces, Serial Interfaces

MICROPROCESSOR INTERFACING
http://tulisnota.blogspot.com/
INTRODUCTION

 A of wide range of peripheral devices can be


connected to the microprocessor by using serial
and parallel interfaces.
 This can be done by simply connecting the
user’s parallel output port of the transmitting
device to the user’s parallel input port of the
receiving device.
http://tulisnota.blogspot.com/
INTRODUCTION (CONT.)

 Parallel transmission over long distances


become expensive since many long wire
needed.
 Thus data to be sent across a long distance
should be sent serially since one line required.
http://tulisnota.blogspot.com/
HANDSHAKING

 I/O devices accept or release information at


much slower rate than the microprocessor.
Handshaking is the method that synchronize
the I/O device with microprocessor.
 Handshake data transfer use signal between
the microprocessor and the peripheral devices
for communicating.
http://tulisnota.blogspot.com/
PARALLEL INTERFACE

 Types of handshakes in parallel interfacing:


1. Single handshake
2. Double handshake
http://tulisnota.blogspot.com/
SINGLE HANDSHAKE (PARALLEL)
 In single handshake, a peripheral device first
sends a "Strobe signal" to the microprocessor to
indicate that it is ready to send data.
 The microprocessor , upon detecting the strobe
signal, opens up its input port and receives the
data.
 After receiving data, it sends an "Acknowledge
signal" to the peripheral to indicate that
transmission has been completed.
 A transmission session has been completed.
http://tulisnota.blogspot.com/
SINGLE HANDSHAKE (PARALLEL) (CONT.)

STB

Receiver Data Transmitter


DATA DATA
ACK
http://tulisnota.blogspot.com/
DOUBLE HANDSHAKE (PARALLEL)
 In double handshake, first the peripheral device
sends a strobe signal, the microprocessor, sends
the acknowledge signal to indicate that it is ready
to receive data.
 After that data is received.
 After sending data, the peripheral sends a strobe
signal to indicate data transmission completion,
due to which, the microprocessor drops its
acknowledge signal and a session has been
completed.
http://tulisnota.blogspot.com/
DOUBLE HANDSHAKE (PARALLEL) (CONT.)

STB

Receiver Data Transmitter


DATA DATA
ACK
http://tulisnota.blogspot.com/
SERIAL INTERFACE

Peripheral
Devices
Micro-p 8251 RS-232C
USART
http://tulisnota.blogspot.com/
8251 USART
http://tulisnota.blogspot.com/
8251 USART (CONT.)

 USART (Universal Synchronous/Asynchronous


Receiver Transmitter)
 Functions of 8251 USART:
1. Serializes the parallel data output by the
processor in the transmitter mode
2. Converts the incoming serial data to parallel in
the receiver mode.
http://tulisnota.blogspot.com/
8251 USART (CONT.)

 Steps to program 8251 to operate in the


synchronous mode:
1. Reset the chip
2. Write the mode control instruction to the control
port
3. Write one or two synchronous characters to the
control port
4. Write the command instruction to the control port
http://tulisnota.blogspot.com/
8251 USART (CONT.)

 Steps to program 8251 to operate in the


asynchronous mode:
1. Reset the chip
2. Write the mode control instruction to the control
port
3. Write the command instruction to the control port
http://tulisnota.blogspot.com/
RS-232C

RS-232C
(Recommended
Standard 232
Converter)
http://tulisnota.blogspot.com/
RS-232C (CONT.)
http://tulisnota.blogspot.com/
RS-232C (CONT.)
http://tulisnota.blogspot.com/
RS-232C (CONT.)

RS- RS-
232C 232C

CABEL

CPU DEVICES

DCE DTE

Note:
DCE : Data Communication Equipment
DTE : Data Terminal Equipment
http://tulisnota.blogspot.com/
RS-232C (CONT.)

DATA
3 3
(RXD)

SIGNAL GROUND
7 7
(SG)

DCE DTE

One Way Communication Note:


RXD : Receive Data
http://tulisnota.blogspot.com/
RS-232C (CONT.)
DATA
3 3
(RXD)
HANDSHAKING
4 4
(RQS)
SIGNAL GROUND
7 7
(SG)

HANDSHAKING
20 20
(DTR)

DCE DTE

Note:
DTR : Data Terminal Ready
One Way Communication
RQS : Request to Send
with Handshaking
http://tulisnota.blogspot.com/
RS-232C (CONT.)
TXD
2 2

CTS
5 5

6 DSR 6

SG
7 7

DCE DTE

Note:
TXD : Transmit Data
Transmission from DTE to DCE
DSR : Data Set Ready
CTS : Clear to Send
http://tulisnota.blogspot.com/
RS-232C (CONT.)
TXD
2 2
RXD
3 3
RQS
4 4
CTS
5 5
DSR
6 6
SG
7 7
CD
8 8
DTR
20 20
RI
21 21
DCE DTE
Two Way Communication with Note:
All Handshaking Connections CD : Carrier Detect
RI : Ring Indicator

You might also like