SlideShare a Scribd company logo
8251 programmable
Communication Interface
P.Divya
Assistant Professor
Dr.N.G.P Institute of Technology
Introduction
 8251 is a USART (Universal Synchronous
Asynchronous Receiver Transmitter) for serial
data communication.
 Programmable peripheral designed for
synchronous /asynchronous serial data
communication, packaged in a 28-pin DIP.
 Receives parallel data from the CPU &
transmits serial data after conversion.
 Also receives serial data from the outside &
transmits parallel data to the CPU after
conversion.
Pin diagram
Block diagram of the 8251 USART
# Sections of 8251A
 Data Bus buffer
 Read/Write Control Logic
 Modem Control
 Transmitter
• Receiver
1. Data Bus Buffer
 It interfaces the internal bus of 8051with the
system bus.
 D0-D7 : 8-bit data bus used to read or write
status, command word or data from or to the
8251A
2. Read/Write Control logic
• It controls the operation of the peripherals
depending upon the operation initiated by CPU.
• It also select one of the two internal addresses
which are the control and data addresses.
• Includes a control logic, six input signals & three
buffer registers: Data register, control register &
status register.
• 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.
Input signals
 CS – Chip Select : When signal goes low, the 8251A is
selected by the MPU for communication.
 C/D – Control/Data : When signal is high, the control or
status register is addressed; when it is low, data buffer
is addressed. (Control register & status register are
differentiated by WR and RD signals)
 WR : When signal is low, the MPU either writes in the
control register or sends output to the data buffer.
 RD : When signal goes low, the MPU either reads a
status from the status register or accepts data from
data buffer.
 RESET : A high on this signal reset 8252A & forces it
into the idle mode.
 CLK : Clock input, usually connected to the system clock
for communication with the microprocessor.
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, parity, number of bits
etc.
 Command word : Enables the data transmission
and reception.
 Register can be accessed as an output port when
the Control/Data pin is high.
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
CS C/D WR RD Operation
0
0
0
0
1
0
0
1
1
×
1
0
0
1
×
0
1
1
0
×
MPU reads data from data buffer
MPU writes data from data buffer
MPU writes a word to control register
MPU reads a word from status register
Chip is not selected for any operation
3. Modem Control
 It handles the handshaking signals to coordinate
the communication between the modem and
USART.
 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.
 CTS - Clear to Send : If its low, the 8251A is
enabled to transmit the serial data provided the
enable bit in the command byte is set to ‘1’.
 RTS - Request to Send Data : Low signal indicates
the modem that the receiver is ready to receive a
data byte from the modem.
4. 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.
Transmit control
Output Register
Transmitter Buffer
 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.
 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
Receive Buffer
Receive control
Input Register
RxRDY
RxC
RxD
 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.
Mode of Operation
• Once the 8251 is programmed as, required,
the TXRDY is raised high to signal the CPU that
8251 is ready to receive data byte from it that
is to be converted in to serial format and
transmitted. This automatically goes low when
the CPU writes the data in to 8251.
• Two functional types :
• Mode instruction control word
• Command Instruction control word.
• Two modes of operation:
• Asynchronous mode
• Synchronous mode
Asynchronous Mode (Transmission)
• When a data character is sent to 8251A by the
CPU, it adds start bits prior to the serial data
bits, followed by optional parity bit and stop
bits using the asynchronous mode instruction
control word format.
• This sequence is then transmitted using TXD
output pin on the falling edge of TXC.
Asynchronous Mode (Receive)
• A falling edge on RXD input line marks a start bit.
• The receiver requires only one stop bit to mark end of the
data bit string, regardless of the stop bit programmed at
the transmitting end. The 8-bit character is then loaded
into the parallel I/O buffer of 8251.
• RXRDY pin is raised high to indicate to the CPU that a
character is ready for it.
• If the previous character has not been read by the CPU,
the new character replaces it, and the overrun flag is set
indicating that the previous character is lost.
Synchronous Mode (Transmission)
• The TXD output is high until the CPU sends a
character to 8251 which usually is a SYNC
character.
• When line goes low, the first character is serially
transmitted out.
• Characters are shifted out on the falling edge of .
• Data is shifted out at the same rate as , over TXD
output line.
• If the CPU buffer becomes empty, the SYNC
character or characters are inserted in the data
stream over TXD output.
Synchronous Mode (Receiver)
• In this mode, the character synchronization
can be achieved internally or externally.
• The data on RXD pin is sampled on rising edge
of the .
• The content of the receiver buffer is compared
with the first SYNC character at every edge
until it matches.
• If 8251 is programmed for two SYNC
characters, the subsequent received character
is also checked.
• When the characters match, the hunting stops.
• The SYNDET pin set high and is reset
automatically by a status read operation.
• In the external SYNC mode, the synchronization
is achieved by applying a high level on the
SYNDET input pin that forces 8251 out of HUNT
mode.
• The high level can be removed after one cycle.
• The parity and overrun error both are checked in
the same way as in asynchronous mode.
Command Instruction Definition
• The command instruction controls the actual
operations of the selected format like enable
transmit/receive, error reset and modem
control.
• A reset operation returns 8251 back to mode
instruction format.
Status Read Definition
• This definition is used by the CPU to read the
status of the active 8251 to confirm if any
error condition or other conditions like the
requirement of processor service has been
detected during the operation.
Thank You

More Related Content

What's hot

UART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPTUART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPT
Sai_praneeth
 
Interrupt 8085
Interrupt 8085Interrupt 8085
Interrupt 8085
Shubham Singh
 
The I2C Interface
The I2C InterfaceThe I2C Interface
The I2C Interface
Corrado Santoro
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
Sudhanshu Janwadkar
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
DominicHendry
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
ShivamSood22
 
8051 serial communication-UART
8051 serial communication-UART8051 serial communication-UART
8051 serial communication-UART
Pantech ProLabs India Pvt Ltd
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controller
Srikrishna Thota
 
axi protocol
axi protocolaxi protocol
axi protocol
Azad Mishra
 
Embedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontrollerEmbedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontroller
Gaurav Verma
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
ShivamSood22
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
MdFazleRabbi18
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
AJAL A J
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
hello_priti
 
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
Jismy .K.Jose
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
Sudhanshu Janwadkar
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085
ShivamSood22
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
Vijay Kumar
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
Dhaval Kaneria
 

What's hot (20)

UART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPTUART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPT
 
Interrupt 8085
Interrupt 8085Interrupt 8085
Interrupt 8085
 
The I2C Interface
The I2C InterfaceThe I2C Interface
The I2C Interface
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
8051 serial communication-UART
8051 serial communication-UART8051 serial communication-UART
8051 serial communication-UART
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controller
 
USART
USARTUSART
USART
 
axi protocol
axi protocolaxi protocol
axi protocol
 
Embedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontrollerEmbedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontroller
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
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
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
 

Similar to 8251 a usart programmable communication interface(1)

8251 communication interface
8251 communication interface8251 communication interface
8251 communication interface
LingalaSowjanya
 
Usart 8251
Usart 8251Usart 8251
8251 usart programmable communication interface by aniket bhute
8251  usart  programmable communication interface by aniket bhute8251  usart  programmable communication interface by aniket bhute
8251 usart programmable communication interface by aniket bhute
Aniket Bhute
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
ShivangiSharma879191
 
8251 IC.pptx
8251 IC.pptx8251 IC.pptx
8251 IC.pptx
Arikesari
 
Chapter5
Chapter5Chapter5
Chapter5
Bisrat Girma
 
8251 -USART.pptx
8251 -USART.pptx8251 -USART.pptx
8251 -USART.pptx
VikasMahor3
 
8251 USART
8251 USART8251 USART
8251 USART
coolsdhanesh
 
8251 USART
8251 USART8251 USART
8251 USART
coolsdhanesh
 
28. 8251 programmable communication interface
28. 8251 programmable communication interface28. 8251 programmable communication interface
28. 8251 programmable communication interface
sandip das
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)
Prof Ansari
 
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx
AyushChoudhary215905
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)
Prof Ansari
 
Serial Io
Serial IoSerial Io
Serial IoAisu
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3
deepakdmaat
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptx
MeenaAnusha1
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt
khushiduppala
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
Pallav Shukla
 

Similar to 8251 a usart programmable communication interface(1) (20)

8251 communication interface
8251 communication interface8251 communication interface
8251 communication interface
 
Usart 8251
Usart 8251Usart 8251
Usart 8251
 
8251 usart programmable communication interface by aniket bhute
8251  usart  programmable communication interface by aniket bhute8251  usart  programmable communication interface by aniket bhute
8251 usart programmable communication interface by aniket bhute
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
8251 IC.pptx
8251 IC.pptx8251 IC.pptx
8251 IC.pptx
 
Chapter5
Chapter5Chapter5
Chapter5
 
8251 -USART.pptx
8251 -USART.pptx8251 -USART.pptx
8251 -USART.pptx
 
Pci
PciPci
Pci
 
8251 USART
8251 USART8251 USART
8251 USART
 
8251 USART
8251 USART8251 USART
8251 USART
 
28. 8251 programmable communication interface
28. 8251 programmable communication interface28. 8251 programmable communication interface
28. 8251 programmable communication interface
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)
 
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)
 
Serial Io
Serial IoSerial Io
Serial Io
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptx
 
8251 a basic
8251 a basic8251 a basic
8251 a basic
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
 

Recently uploaded

Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
AG2 Design
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Landownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptxLandownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptx
JezreelCabil2
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 

Recently uploaded (20)

Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Landownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptxLandownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptx
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 

8251 a usart programmable communication interface(1)

  • 1. 8251 programmable Communication Interface P.Divya Assistant Professor Dr.N.G.P Institute of Technology
  • 2. Introduction  8251 is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous /asynchronous serial data communication, packaged in a 28-pin DIP.  Receives parallel data from the CPU & transmits serial data after conversion.  Also receives serial data from the outside & transmits parallel data to the CPU after conversion.
  • 4. Block diagram of the 8251 USART
  • 5. # Sections of 8251A  Data Bus buffer  Read/Write Control Logic  Modem Control  Transmitter • Receiver 1. Data Bus Buffer  It interfaces the internal bus of 8051with the system bus.  D0-D7 : 8-bit data bus used to read or write status, command word or data from or to the 8251A
  • 6. 2. Read/Write Control logic • It controls the operation of the peripherals depending upon the operation initiated by CPU. • It also select one of the two internal addresses which are the control and data addresses. • Includes a control logic, six input signals & three buffer registers: Data register, control register & status register. • 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.
  • 7. Input signals  CS – Chip Select : When signal goes low, the 8251A is selected by the MPU for communication.  C/D – Control/Data : When signal is high, the control or status register is addressed; when it is low, data buffer is addressed. (Control register & status register are differentiated by WR and RD signals)  WR : When signal is low, the MPU either writes in the control register or sends output to the data buffer.  RD : When signal goes low, the MPU either reads a status from the status register or accepts data from data buffer.  RESET : A high on this signal reset 8252A & forces it into the idle mode.  CLK : Clock input, usually connected to the system clock for communication with the microprocessor.
  • 8. 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, parity, number of bits etc.  Command word : Enables the data transmission and reception.  Register can be accessed as an output port when the Control/Data pin is high.
  • 9. 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 CS C/D WR RD Operation 0 0 0 0 1 0 0 1 1 × 1 0 0 1 × 0 1 1 0 × MPU reads data from data buffer MPU writes data from data buffer MPU writes a word to control register MPU reads a word from status register Chip is not selected for any operation
  • 10. 3. Modem Control  It handles the handshaking signals to coordinate the communication between the modem and USART.  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.  CTS - Clear to Send : If its low, the 8251A is enabled to transmit the serial data provided the enable bit in the command byte is set to ‘1’.  RTS - Request to Send Data : Low signal indicates the modem that the receiver is ready to receive a data byte from the modem.
  • 11. 4. 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. Transmit control Output Register Transmitter Buffer
  • 12.  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.  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.
  • 13. 5. Receiver Section  Accepts serial data on the RxD pin and converts them to parallel data.  Has two registers :  Receiver input register  Buffer register Receive Buffer Receive control Input Register RxRDY RxC RxD
  • 14.  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.
  • 15. Mode of Operation • Once the 8251 is programmed as, required, the TXRDY is raised high to signal the CPU that 8251 is ready to receive data byte from it that is to be converted in to serial format and transmitted. This automatically goes low when the CPU writes the data in to 8251. • Two functional types : • Mode instruction control word • Command Instruction control word. • Two modes of operation: • Asynchronous mode • Synchronous mode
  • 16. Asynchronous Mode (Transmission) • When a data character is sent to 8251A by the CPU, it adds start bits prior to the serial data bits, followed by optional parity bit and stop bits using the asynchronous mode instruction control word format. • This sequence is then transmitted using TXD output pin on the falling edge of TXC.
  • 17. Asynchronous Mode (Receive) • A falling edge on RXD input line marks a start bit. • The receiver requires only one stop bit to mark end of the data bit string, regardless of the stop bit programmed at the transmitting end. The 8-bit character is then loaded into the parallel I/O buffer of 8251. • RXRDY pin is raised high to indicate to the CPU that a character is ready for it. • If the previous character has not been read by the CPU, the new character replaces it, and the overrun flag is set indicating that the previous character is lost.
  • 18.
  • 19.
  • 20. Synchronous Mode (Transmission) • The TXD output is high until the CPU sends a character to 8251 which usually is a SYNC character. • When line goes low, the first character is serially transmitted out. • Characters are shifted out on the falling edge of . • Data is shifted out at the same rate as , over TXD output line. • If the CPU buffer becomes empty, the SYNC character or characters are inserted in the data stream over TXD output.
  • 21. Synchronous Mode (Receiver) • In this mode, the character synchronization can be achieved internally or externally. • The data on RXD pin is sampled on rising edge of the . • The content of the receiver buffer is compared with the first SYNC character at every edge until it matches. • If 8251 is programmed for two SYNC characters, the subsequent received character is also checked.
  • 22. • When the characters match, the hunting stops. • The SYNDET pin set high and is reset automatically by a status read operation. • In the external SYNC mode, the synchronization is achieved by applying a high level on the SYNDET input pin that forces 8251 out of HUNT mode. • The high level can be removed after one cycle. • The parity and overrun error both are checked in the same way as in asynchronous mode.
  • 23.
  • 24. Command Instruction Definition • The command instruction controls the actual operations of the selected format like enable transmit/receive, error reset and modem control. • A reset operation returns 8251 back to mode instruction format.
  • 25.
  • 26. Status Read Definition • This definition is used by the CPU to read the status of the active 8251 to confirm if any error condition or other conditions like the requirement of processor service has been detected during the operation.
  • 27.