SlideShare a Scribd company logo
1 of 26
Asynchronous and Synchronous
data transfer using 8251A
INTRODUCTION
 8251A is a USART (Universal Synchronous Asynchronous Receiver
Transmitter) for serial data communication.
 It is a programmable peripheral interface designed for synchronous
/asynchronous serial data communication.
 Serial data transmission is widely used in communications over long
distances. Parallel communication requires many wires to be laid between
the two communicating points. Hence, usually data is converted to serial
format and sent over fewer number of wires to the destination.
 Receives parallel data from the microprocessor & transmits serial data
after conversion of parallel data to serial data.
 Also receives serial data from the outside & transmits parallel data to the
microprocessor after conversion of serial data into parallel data.
BASICS OF SERIAL COMMUNICATION
• The process of sending data bit by bit sequentially, over a single
channel between sender and receiver is known as serial transmission
of data.
• It requires only one communication line rather than n lines to
transmit data from sender to receiver.
• For correct data transmission, there has to be some form of
synchronization between transmitter and receiver.
• Serial communication reduce the cost of an IC package by reducing
the number of pins used for communication between different IC’s,
instead of using parallel communication.
BASICS OF SERIAL COMMUNICATION
• Bit rate: - Number of bits sent every second (BPS)
• Baud rate: - Number of symbols sent every second, where every
symbol can represent more than one bit.
• The sender and receiver must agree on a set of rules (Protocol) on :
1. When data transmission begins and ends.
2. The used bit rate and data packaging format.
SYNCHRONOUS VS ASYNCHRONOUS
• Synchronous data transfer:
• Sender and receiver use the same clock signal
• Supports high data transfer rate
• Needs clock signal between the sender and the receiver
• A master (or one of the senders) should provide the clock signal to all the receivers in
the synchronous data transfer.
• Asynchronous data transfer:
• For asynchronous data transfer, there is no common clock signal between the sender
and receivers.
• Sender provides a synchronization signal to the receiver before starting the transfer
of each message
• The sender and the receiver first need to agree on a data transfer speed.
• slower data transfer rate
Definition of Serial Synchronous Transmission
• Synchronous Transmission is efficient, reliable and is used for transferring a
large amount of data.
• Communication is performed is based on a synchronization signal added to
each bit from the sending side.
• Synchronization between the source and target is required so that the
source knows where the new byte begins since there is no space between
the data.
• It provides real-time communication between connected devices. Chat
Rooms, Video Conferencing, telephonic conversations, as well as face to
face interactions, are some of the examples of Synchronous Transmission.
Definition of Asynchronous Transmission
• In Asynchronous Transmission data flows as1 byte or a character at a time.
• For asynchronous transmission, a start bit is used to identify the beginning of each
character and at least one stop bit is used to identify end of data character, this is known as
bit synchronization.
• Effectively, the sender and receiver are synchronized on a character by character basis.
• Asynchronous serial data communication is widely used for character-oriented
transmissions, while block-oriented data transfers use the synchronous method.
• In the asynchronous method, each character is placed between start and stop bits. This is
called framing.
DATA TRANSMISSION TYPES
• Simplex:
- Communication is possible in one direction only. Ex.TV
• Half duplex:
- Communication is possible in both directions, but only one TX and one RX at a
time. Ex. Police radio
DATA TRANSMISSION TYPES
• Full duplex: -
Communication is possible in both directions, both sides can transmit and
receive in the same time.
USART
• The USART module is a full duplex, serial I/O communication
peripheral.
• It is packed in a 28 pin DIP.
• It contains all shift registers, clock generators and data buffers needed
for serial communication.
• It can work in synchronous mode, or in asynchronous mode.
• The USART uses two I/O pins to transmit and receive serial data. Both
transmission and reception can occur at the same time i.e. ‘full
duplex’ operation.
USART
• To send a byte, the application writes the byte to the transmit buffer.
- The USART then sends the data, bit by bit in the requested
format, adding Stop, Start, and parity bits as needed.
• In a similar way, the USART stores received bytes in the receiver
buffer.
- Then the USART can generate an interrupt to notify the
processor to find out if data has arrived.
Block diagram of the 8251 USART
Sections of 8251
• Data Bus buffer
• Read/Write Control Logic
• Modem Control
• Transmitter
• Receiver
1. Data Bus Buffer:
• This is bidirectional 8-bit buffer used to interface internal data bus of 8251 to
the microprocessor’s data bus. The direction of data transfer through the data
bus is decided by RD and WR signal. This buffer transfers control word, status
word and data to transfer.
2. Read/Write Control logic
• It controls the operation of the peripherals depending upon the
operation initiated by CPU.
• The control signals RD, WR, C/D, CTS, CLK and RESET are given to this
block to generate control signals for this device.
• It includes a control logic, six input control signals & three buffer
registers:
• (a) TWO 8-bit data buffer registers : one is for transmitter and other is for
receiver.
• (b) One 16-bit control word register, named as two separate registers: mode
word register and command word register.
• (c) One 8-bit status register.
Contd.
• Control logic : Interfaces the chip with MPU, determines the
functions of the chip according to the control word in the control
register & monitors the data flow.
• Control Register: 16-bit register for a control word consist of two
independent bytes namely mode word & command word.
• Mode word : Specifies the general characteristics of operation such as baud
rate, parity, number of bits etc.
• Command word : Enables the data transmission and reception.
Contd.
• Status register:
• Checks the ready status of the peripheral.
• Status word in the status register provides the information concerning
register status and transmission errors.
Data register
Used as an input and output port when the C/D is low
3. Transmitter section
• Accepts parallel data from MPU & converts them into serial data.
• Has two registers:
• Buffer register : To hold eight bits
• Output register : To convert eight bits into a stream of serial bits.
• The MPU writes a byte in the buffer register.
• Whenever the output register is empty; the contents of buffer register are
transferred to output register.
• Whenever we want to transmit a character, that character must be
placed inside the transmitter buffer, which is to be shifted to output
register, from where it transmit the data bit by bit using TxD pin.
• Transmitter section consists of three output & one input signals
• TxD - Transmitted Data Output : Output signal to transmit the data to
peripherals
• TxC - Transmitter Clock Input : Input signal, controls the rate of
transmission.
• TxRDY - Transmitter Ready : Output signal, indicates the buffer
register is empty and the USART is ready to accept the next data byte.
• TxE - Transmitter Empty : Output signal to indicate the output register
is empty and the USART is ready to accept the next data byte.
5. Receiver Section
• Accepts serial data on the RxD pin and converts them to parallel data.
• Has two registers :
• Receiver input register
• Buffer register
Contd.
• Receiver section receives data bit by bit on RxD line in the input
register and at the rate determined by receiver clock.
• The input register converts the serial data into parallel data and
transferred to the receiver buffer register.
• When the data byte is transferred from the input register to receiver
buffer register, the control logic generates a signal RxRDY to signal
processor about the availability of data byte to be read by processor.
Control signals of Receiver section
 When RxD goes low, the control logic assumes it is a start bit, waits for
half bit time, and samples the line again. If the line is still low, the input
register accepts the following data, and loads it into buffer register at the
rate determined by the receiver clock.
 RxRDY - Receiver Ready Output: Output signal, goes high when the USART
has a character in the buffer register & is ready to transfer it to the MPU.
 RxD - Receive Data Input : Bits are received serially on this line &
converted into a parallel byte in the receiver input register.
 RxC - Receiver Clock Input : Clock signal that controls the rate at which
bits are received by the USART.
5. Modem Control
The Pin Diagram of 8251 Microcontroller has a set of control inputs and outputs that
can be used to simplify the interface to almost MODEM. The MODEM control unit
allows to interface a MODEM to 8251 and to establish data communication though
MODEM over telephone lines. This unit take care of handshaking signals for MODEM
interface.
DSR (Data Set Ready) : Checks if the Data Set is ready when communicating with a
modem.
DTR (Data Terminal Ready) : Indicates that the device is ready to accept data when
the 8251 is communicating with a modem
RTS (Request to Send ) : Low signal indicates the modem that the receiver is ready to
receive a data byte from the modem.
CTS (Clear to Send) : A low on this input enables the 8251A to transmit serial data if
the TxE bit in the command byte is set to a “one”.
Pin diagram of 8251
D0 – D7: This is an 8-bit bidirectional data bus used to read or write status,
command word or data from or to the 8251A
RD: This active-low input to 8251A is used to inform it that the CPU is reading
either data or status information from its internal registers
WR: . This active-low input to 8251A is used to inform it that the CPU is writing
data or control word to 8251A.
C / D: (Control Word/Data): This input pin, together with RD and WR inputs,
informs the 8251A that the word on the data bus is either a data or control
word/status information. If this pin is 1, control / status is on the bus, otherwise
data is on the bus.
CLK: This input is used to generate internal device timings and is normally
connected to clock generator output.
RESET: A high on this input forces the 8251A into an idle state.
CS : (Chip Select)When signal goes low, the 8251A is selected by the MPU for
communication.
Pin diagram of 8251
• TxD-(Transmit Data):-This is an output line for transmitting serial bits
out on the falling edge of TxC, which transmitter clock.
• TxC-(Transmitter clock):-This input signal controls the rate at which
the bits are transmitted by the USART. In synchronous mode, the baud
rate will be the same as the frequency of TxC. In asynchronous mode,
it is possible to select the baud rate factor by mode instruction.
• TxRDY-transmitter Ready: This is the output signal. When it is high, it
indicates the buffer register is empty and USART is ready to accept a
byte. It can be used either to interrupt the MPU or to indicate the
status. This signal is reset when a data byte is loaded into the buffer.
• TxE-Transmitter Empty: This is an output signal. Logic 1 on this
indicates the output register is empty after transmitting all the
characters. This signal is reset when a byte is transferred from the
buffer to the output register.
Pin diagram of 8251
• RxD-Receive Data: Bits are received serially on this line and
converted into a parallel byte in the receiver input register.
• RxC-Receiver clock: This is a clock signal that controls the
rate at which bits are received by the USART. In the
asynchronous mode, the clock can be set to 1,16 or 64
times the baud.
• RxRDY-Receiver Ready: This is an output signal. It goes high
when the USART has a character in the buffer register and is
ready to transfer into the MPU. This line can be used either
to indicate the status or to interrupt the MPU. When MPU
reads a data character, RxRDY will be reset by the leading
edge of RD signal.
Pin Diagram of 8251
• SYNDET/BD (Input or output terminal)
• This pin is used in synchronous mode as SYNDET for detection of
synchronous characters and may be used as either input or output.
• When used as an input (external sync detect mode) a positive signal on
syndet/bd will cause the 8251A to start receiving data characters on the
rising edge of the next RXC.
• When used as output (internal sync detect mode) then syndet pin go high
to indicate that the 8251 has located the sync character.
• In asynchronous mode this pin goes high if receiver line stays low for more
than 2 character times. It then indicates a break in the data stream, so used
as BD.

More Related Content

What's hot

MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration AKHIL MADANKAR
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptxMemonaMemon1
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-pptjemimajerome
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051Sudhanshu Janwadkar
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architectureprasadpawaskar
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259MdFazleRabbi18
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Jismy .K.Jose
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction SetDr. Pankaj Zope
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
Adc interfacing
Adc interfacingAdc interfacing
Adc interfacingMonica Gunjal
 
Introducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptxIntroducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptxDr.YNM
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkarSAQUIB AHMAD
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 MicroprocessorNahian Ahmed
 
Analog to digital conversion
Analog to digital conversionAnalog to digital conversion
Analog to digital conversionEngr Ahmad Khan
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessorhepzijustin
 

What's hot (20)

Timing diagram 8085 microprocessor
Timing diagram 8085 microprocessorTiming diagram 8085 microprocessor
Timing diagram 8085 microprocessor
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-ppt
 
UART
UARTUART
UART
 
8086 modes
8086 modes8086 modes
8086 modes
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259
 
Microprocessor ppt
Microprocessor pptMicroprocessor ppt
Microprocessor ppt
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Adc interfacing
Adc interfacingAdc interfacing
Adc interfacing
 
Introducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptxIntroducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptx
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
 
Analog to digital conversion
Analog to digital conversionAnalog to digital conversion
Analog to digital conversion
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessor
 

Similar to 8251 USART

USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaPallav Shukla
 
Serial data transfer
Serial data transferSerial data transfer
Serial data transferDinesh Subhuraaj
 
serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdfKiranG731731
 
Serial Communication
Serial CommunicationSerial Communication
Serial CommunicationUshaRani289
 
8251 a usart programmable communication interface(1)
8251 a usart   programmable communication interface(1)8251 a usart   programmable communication interface(1)
8251 a usart programmable communication interface(1)divyangpit
 
8251 -USART.pptx
8251 -USART.pptx8251 -USART.pptx
8251 -USART.pptxVikasMahor3
 
Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....ANKUSH445845
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
Unit 3 devices&buses
Unit 3 devices&busesUnit 3 devices&buses
Unit 3 devices&busesPavithra S
 
Class 4 I/O Ports
Class 4 I/O PortsClass 4 I/O Ports
Class 4 I/O PortsSURYAPRAKASH S
 
The presentation is about USART and serial communication
The presentation is about USART and serial communicationThe presentation is about USART and serial communication
The presentation is about USART and serial communicationsinaankhalil
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication InterfaceSandesh Agrawal
 
Asynchronous and synchronous
Asynchronous and synchronousAsynchronous and synchronous
Asynchronous and synchronousAkhil .B
 

Similar to 8251 USART (20)

8251 a basic
8251 a basic8251 a basic
8251 a basic
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
 
Usart 8251
Usart 8251Usart 8251
Usart 8251
 
Serial data transfer
Serial data transferSerial data transfer
Serial data transfer
 
serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdf
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
8251 a usart programmable communication interface(1)
8251 a usart   programmable communication interface(1)8251 a usart   programmable communication interface(1)
8251 a usart programmable communication interface(1)
 
8251 -USART.pptx
8251 -USART.pptx8251 -USART.pptx
8251 -USART.pptx
 
ES UNIT3.pptx
ES UNIT3.pptxES UNIT3.pptx
ES UNIT3.pptx
 
Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....
 
8251 USART
8251 USART8251 USART
8251 USART
 
8251 USART
8251 USART8251 USART
8251 USART
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
Unit 3 devices&buses
Unit 3 devices&busesUnit 3 devices&buses
Unit 3 devices&buses
 
Chapter 3 esy
Chapter 3 esy Chapter 3 esy
Chapter 3 esy
 
Class 4 I/O Ports
Class 4 I/O PortsClass 4 I/O Ports
Class 4 I/O Ports
 
USART
USARTUSART
USART
 
The presentation is about USART and serial communication
The presentation is about USART and serial communicationThe presentation is about USART and serial communication
The presentation is about USART and serial communication
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication Interface
 
Asynchronous and synchronous
Asynchronous and synchronousAsynchronous and synchronous
Asynchronous and synchronous
 

More from ShivamSood22

Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085ShivamSood22
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA ControllerShivamSood22
 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt ControllerShivamSood22
 
Data transfer techniques 8085
Data transfer techniques 8085Data transfer techniques 8085
Data transfer techniques 8085ShivamSood22
 
State transition diagram 8085
State transition diagram 8085State transition diagram 8085
State transition diagram 8085ShivamSood22
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085ShivamSood22
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085ShivamSood22
 
Endianness 8085
Endianness 8085Endianness 8085
Endianness 8085ShivamSood22
 

More from ShivamSood22 (10)

8155 PPI
8155 PPI8155 PPI
8155 PPI
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt Controller
 
Data transfer techniques 8085
Data transfer techniques 8085Data transfer techniques 8085
Data transfer techniques 8085
 
State transition diagram 8085
State transition diagram 8085State transition diagram 8085
State transition diagram 8085
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
Endianness 8085
Endianness 8085Endianness 8085
Endianness 8085
 

Recently uploaded

Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniquesugginaramesh
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxPurva Nikam
 

Recently uploaded (20)

Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTACÂŽ CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniques
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptx
 

8251 USART

  • 1. Asynchronous and Synchronous data transfer using 8251A
  • 2. INTRODUCTION  8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  It is a programmable peripheral interface designed for synchronous /asynchronous serial data communication.  Serial data transmission is widely used in communications over long distances. Parallel communication requires many wires to be laid between the two communicating points. Hence, usually data is converted to serial format and sent over fewer number of wires to the destination.  Receives parallel data from the microprocessor & transmits serial data after conversion of parallel data to serial data.  Also receives serial data from the outside & transmits parallel data to the microprocessor after conversion of serial data into parallel data.
  • 3. BASICS OF SERIAL COMMUNICATION • The process of sending data bit by bit sequentially, over a single channel between sender and receiver is known as serial transmission of data. • It requires only one communication line rather than n lines to transmit data from sender to receiver. • For correct data transmission, there has to be some form of synchronization between transmitter and receiver. • Serial communication reduce the cost of an IC package by reducing the number of pins used for communication between different IC’s, instead of using parallel communication.
  • 4. BASICS OF SERIAL COMMUNICATION • Bit rate: - Number of bits sent every second (BPS) • Baud rate: - Number of symbols sent every second, where every symbol can represent more than one bit. • The sender and receiver must agree on a set of rules (Protocol) on : 1. When data transmission begins and ends. 2. The used bit rate and data packaging format.
  • 5. SYNCHRONOUS VS ASYNCHRONOUS • Synchronous data transfer: • Sender and receiver use the same clock signal • Supports high data transfer rate • Needs clock signal between the sender and the receiver • A master (or one of the senders) should provide the clock signal to all the receivers in the synchronous data transfer. • Asynchronous data transfer: • For asynchronous data transfer, there is no common clock signal between the sender and receivers. • Sender provides a synchronization signal to the receiver before starting the transfer of each message • The sender and the receiver first need to agree on a data transfer speed. • slower data transfer rate
  • 6. Definition of Serial Synchronous Transmission • Synchronous Transmission is efficient, reliable and is used for transferring a large amount of data. • Communication is performed is based on a synchronization signal added to each bit from the sending side. • Synchronization between the source and target is required so that the source knows where the new byte begins since there is no space between the data. • It provides real-time communication between connected devices. Chat Rooms, Video Conferencing, telephonic conversations, as well as face to face interactions, are some of the examples of Synchronous Transmission.
  • 7. Definition of Asynchronous Transmission • In Asynchronous Transmission data flows as1 byte or a character at a time. • For asynchronous transmission, a start bit is used to identify the beginning of each character and at least one stop bit is used to identify end of data character, this is known as bit synchronization. • Effectively, the sender and receiver are synchronized on a character by character basis. • Asynchronous serial data communication is widely used for character-oriented transmissions, while block-oriented data transfers use the synchronous method. • In the asynchronous method, each character is placed between start and stop bits. This is called framing.
  • 8. DATA TRANSMISSION TYPES • Simplex: - Communication is possible in one direction only. Ex.TV • Half duplex: - Communication is possible in both directions, but only one TX and one RX at a time. Ex. Police radio
  • 9. DATA TRANSMISSION TYPES • Full duplex: - Communication is possible in both directions, both sides can transmit and receive in the same time.
  • 10. USART • The USART module is a full duplex, serial I/O communication peripheral. • It is packed in a 28 pin DIP. • It contains all shift registers, clock generators and data buffers needed for serial communication. • It can work in synchronous mode, or in asynchronous mode. • The USART uses two I/O pins to transmit and receive serial data. Both transmission and reception can occur at the same time i.e. ‘full duplex’ operation.
  • 11. USART • To send a byte, the application writes the byte to the transmit buffer. - The USART then sends the data, bit by bit in the requested format, adding Stop, Start, and parity bits as needed. • In a similar way, the USART stores received bytes in the receiver buffer. - Then the USART can generate an interrupt to notify the processor to find out if data has arrived.
  • 12. Block diagram of the 8251 USART
  • 13. Sections of 8251 • Data Bus buffer • Read/Write Control Logic • Modem Control • Transmitter • Receiver 1. Data Bus Buffer: • This is bidirectional 8-bit buffer used to interface internal data bus of 8251 to the microprocessor’s data bus. The direction of data transfer through the data bus is decided by RD and WR signal. This buffer transfers control word, status word and data to transfer.
  • 14. 2. Read/Write Control logic • It controls the operation of the peripherals depending upon the operation initiated by CPU. • The control signals RD, WR, C/D, CTS, CLK and RESET are given to this block to generate control signals for this device. • It includes a control logic, six input control signals & three buffer registers: • (a) TWO 8-bit data buffer registers : one is for transmitter and other is for receiver. • (b) One 16-bit control word register, named as two separate registers: mode word register and command word register. • (c) One 8-bit status register.
  • 15. Contd. • Control logic : Interfaces the chip with MPU, determines the functions of the chip according to the control word in the control register & monitors the data flow. • Control Register: 16-bit register for a control word consist of two independent bytes namely mode word & command word. • Mode word : Specifies the general characteristics of operation such as baud rate, parity, number of bits etc. • Command word : Enables the data transmission and reception.
  • 16. Contd. • Status register: • Checks the ready status of the peripheral. • Status word in the status register provides the information concerning register status and transmission errors. Data register Used as an input and output port when the C/D is low
  • 17. 3. Transmitter section • Accepts parallel data from MPU & converts them into serial data. • Has two registers: • Buffer register : To hold eight bits • Output register : To convert eight bits into a stream of serial bits. • The MPU writes a byte in the buffer register. • Whenever the output register is empty; the contents of buffer register are transferred to output register.
  • 18. • Whenever we want to transmit a character, that character must be placed inside the transmitter buffer, which is to be shifted to output register, from where it transmit the data bit by bit using TxD pin. • Transmitter section consists of three output & one input signals • TxD - Transmitted Data Output : Output signal to transmit the data to peripherals • TxC - Transmitter Clock Input : Input signal, controls the rate of transmission. • TxRDY - Transmitter Ready : Output signal, indicates the buffer register is empty and the USART is ready to accept the next data byte. • TxE - Transmitter Empty : Output signal to indicate the output register is empty and the USART is ready to accept the next data byte.
  • 19. 5. Receiver Section • Accepts serial data on the RxD pin and converts them to parallel data. • Has two registers : • Receiver input register • Buffer register
  • 20. Contd. • Receiver section receives data bit by bit on RxD line in the input register and at the rate determined by receiver clock. • The input register converts the serial data into parallel data and transferred to the receiver buffer register. • When the data byte is transferred from the input register to receiver buffer register, the control logic generates a signal RxRDY to signal processor about the availability of data byte to be read by processor.
  • 21. Control signals of Receiver section  When RxD goes low, the control logic assumes it is a start bit, waits for half bit time, and samples the line again. If the line is still low, the input register accepts the following data, and loads it into buffer register at the rate determined by the receiver clock.  RxRDY - Receiver Ready Output: Output signal, goes high when the USART has a character in the buffer register & is ready to transfer it to the MPU.  RxD - Receive Data Input : Bits are received serially on this line & converted into a parallel byte in the receiver input register.  RxC - Receiver Clock Input : Clock signal that controls the rate at which bits are received by the USART.
  • 22. 5. Modem Control The Pin Diagram of 8251 Microcontroller has a set of control inputs and outputs that can be used to simplify the interface to almost MODEM. The MODEM control unit allows to interface a MODEM to 8251 and to establish data communication though MODEM over telephone lines. This unit take care of handshaking signals for MODEM interface. DSR (Data Set Ready) : Checks if the Data Set is ready when communicating with a modem. DTR (Data Terminal Ready) : Indicates that the device is ready to accept data when the 8251 is communicating with a modem RTS (Request to Send ) : Low signal indicates the modem that the receiver is ready to receive a data byte from the modem. CTS (Clear to Send) : A low on this input enables the 8251A to transmit serial data if the TxE bit in the command byte is set to a “one”.
  • 23. Pin diagram of 8251 D0 – D7: This is an 8-bit bidirectional data bus used to read or write status, command word or data from or to the 8251A RD: This active-low input to 8251A is used to inform it that the CPU is reading either data or status information from its internal registers WR: . This active-low input to 8251A is used to inform it that the CPU is writing data or control word to 8251A. C / D: (Control Word/Data): This input pin, together with RD and WR inputs, informs the 8251A that the word on the data bus is either a data or control word/status information. If this pin is 1, control / status is on the bus, otherwise data is on the bus. CLK: This input is used to generate internal device timings and is normally connected to clock generator output. RESET: A high on this input forces the 8251A into an idle state. CS : (Chip Select)When signal goes low, the 8251A is selected by the MPU for communication.
  • 24. Pin diagram of 8251 • TxD-(Transmit Data):-This is an output line for transmitting serial bits out on the falling edge of TxC, which transmitter clock. • TxC-(Transmitter clock):-This input signal controls the rate at which the bits are transmitted by the USART. In synchronous mode, the baud rate will be the same as the frequency of TxC. In asynchronous mode, it is possible to select the baud rate factor by mode instruction. • TxRDY-transmitter Ready: This is the output signal. When it is high, it indicates the buffer register is empty and USART is ready to accept a byte. It can be used either to interrupt the MPU or to indicate the status. This signal is reset when a data byte is loaded into the buffer. • TxE-Transmitter Empty: This is an output signal. Logic 1 on this indicates the output register is empty after transmitting all the characters. This signal is reset when a byte is transferred from the buffer to the output register.
  • 25. Pin diagram of 8251 • RxD-Receive Data: Bits are received serially on this line and converted into a parallel byte in the receiver input register. • RxC-Receiver clock: This is a clock signal that controls the rate at which bits are received by the USART. In the asynchronous mode, the clock can be set to 1,16 or 64 times the baud. • RxRDY-Receiver Ready: This is an output signal. It goes high when the USART has a character in the buffer register and is ready to transfer into the MPU. This line can be used either to indicate the status or to interrupt the MPU. When MPU reads a data character, RxRDY will be reset by the leading edge of RD signal.
  • 26. Pin Diagram of 8251 • SYNDET/BD (Input or output terminal) • This pin is used in synchronous mode as SYNDET for detection of synchronous characters and may be used as either input or output. • When used as an input (external sync detect mode) a positive signal on syndet/bd will cause the 8251A to start receiving data characters on the rising edge of the next RXC. • When used as output (internal sync detect mode) then syndet pin go high to indicate that the 8251 has located the sync character. • In asynchronous mode this pin goes high if receiver line stays low for more than 2 character times. It then indicates a break in the data stream, so used as BD.