SlideShare a Scribd company logo
1 of 30
Download to read offline
Data Link Control
Line Control Unit LCU
Parallel data transfer
✓Signaling elements sent down the line all 8 bits at a
time.
✓One clock loads 8 bits.
✓8 times faster than serial transmission.
✓Data available to PC in desired form.
✓Best suitable for internal BUS.
✓Requires much larger cabling infrastructure.(One wire per
bit)
✓Can not be used for longer distances as delay in each
wire may be different.
Serial data transfer
✓Signaling elements sent down the line one at a time.
✓One clock loads one symbol.
✓Each signaling element may be
✓ Less than a bit – Manchester code
✓ One bit long -- NRZ-L, FSK, etc..
✓ More than a bit – QPSK.
✓Requires much lesser cabling.
✓Can be used for longer distances.
✓Slower than parallel transmission.
✓Synchronization is a critical issue.
Serial data transfer
✓Receiver should recognize beginning and end of bit
stream and each bit duration.
✓If Transmitter and Receiver are not synchronized, bits
sampled would be erroneous.
✓Error may not occur immediately but will occur later
due to cumulative effect.
Serial data transfer-- Example
✓Tr rate is 10,000 bits/ s.
✓Bit time T = 0.1ms
✓Bits sampled at mid-bit time = 0.05ms away from both ends.
!
!
!
!
✓Receiver clock faster or slower by 1%.
✓Each pulse will be sampled at a cumulative of 0.001ms.
✓After how many bits, it would be samples at the edge of the bit?
✓50 bits.
✓51st bit sampled will be the adjacent bit – error.
✓Larger the CLK difference, earlier the error.
0.1ms
0.05ms
Asynchronous Transmission
✓Data sent one character at a time.
✓Data can be 5 to 8 bits in length.
!
!
!
!
✓Receiver resynchronizes with each character.
✓Larger difference in CLK of TR and REC can also be
accommodated as only 8 bits max transmitted together. How
much ?
✓Receiver alerted with a start bit.
Asynchronous Transmission
!
!
!
!
!
!
!
✓Idle ‘1’ is negative voltage and ‘0’ is positive voltage.
✓Receiver is activated with one bit start bit i.e. positive pulse.
✓Followed by 5 to 8 data bits and one bit parity.
✓Frame ends with 1 to 2 stop bits – idle 1’s.
✓New character will have a new start bit.
START
BIT
One
character
P STOP
BITs
0
1
Asynchronous Transmission
✓ADVANTAGES:
✓Simple and cheap.
✓Resynchronizes at every start bit.
✓Very good for low speed transmission.
✓Example: PC connected to real time terminal where operator feeds
manually.
✓DISADVANTAGES:
✓2 to 3 bits overhead per character(25%).
✓Additional gap between words.
Synchronous Transmission
✓Blocks of characters or bits transmitted without start or stop bits.
✓REC synchronizes with either separate clocking line or clocking info
embedded in data.
✓Pre-amble and post-amble bits sent at beginning and end
respectively for synchronization.
✓TYPES:
✓ Character oriented transmission
✓ Bit oriented transmission
Character Oriented Synchronous Transmission
!
!
!
!
!
✓Data and control information both in character form.
✓Individual bits have no meaning, except in character form.
✓SYNC are predetermined unique bit pattern in character form for
synchronization of Rec.
✓Post amble can be avoided by stating length of data.
✓Overheads are very less as large chunk of data can be sent with
one set of headers.
Other control
information
S
Y
N
S
Y
N
S
Y
N
S
Y
N
DATAPreamble
Post amble
Address
Bit Oriented Synchronous Transmission
!
!
!
!
!
✓Data and control information both in bit form.
✓Every bit has a definition.
✓Overheads are very less as large chunk of data can be sent with
one set of headers.
Control Field
F

L

A

G

…F

L

A

G
DATA8 bit flag
8 bit flag
Address CRC
Line Control Unit LCU
✓PC is Data Terminal Equipment DTE.
✓DTE feeds Data Communication Equipment DCE. (MODEM).
✓DTE gives parallel data, which needs to be carried to DCE as serial
data.
✓LCU converts parallel data to serial data.
✓TYPES:
✓ UART Universal Asynchronous Receiver/Transmitter.
✓ USRT Universal Synchronous Receiver/Transmitter.
UART Universal Asynchronous Receiver/Transmitter
✓Used to transmit asynchronous data format without clocking
information.
✓FUNCTIONS:
✓Performs parallel to serial and serial to parallel conversion at
Transmitter and Receiver respectively.
✓Perform error detection by inserting and checking parity bits at
Transmitter and Receiver respectively.
✓Inserts and detects start and stop bits at Transmitter and Receiver
respectively.
✓Uses a control word to accommodate options for parity, data and
stop bits.
✓Control word must be programmed into UART control register prior
to transmission.
UART Control Word
✓START Bit: Always a single bit ‘0’, +ve voltage. No other option.
✓Number of Parity Bit NPB:
✓ NPB ‘1’ = No parity bit used.(RPE disable)
✓ NPB ‘0’ = One Parity bits used
✓ EVEN or ODD Parity POE:
✓ POE ‘1’ = Even Parity
✓ POE ‘0’ = ODD Parity
✓ Number of STOP Bits NSB
✓ NSB ‘1’ = 2 stop bits
✓ NSB ‘0’ = 1 stop bits
UART Control Word
✓Number of DATA Bit NDB1, NDB2:
!
!
!
!
!
!
!
✓If NDB2-NDB1 is 11 and NSB is 1 then:
✓ NSB = 1.5
NDB2 NDB1 Bits/word
0
0
1
1
0
1
0
1
5
6
7
8
UART Transmitter
Transmit Buffer Register
TD7 TD8TD5 TD6TD7 TD4 TD9 TD0
TDS
Control Register
NPB NSB NDB1 NDB2
CS
Parity
Generator
Data bits, Parity bits, Stop bits Steering Logic
Circuit
O/P
Ckt
Buffer Empty Logic Circuit
TEOC
Timing
Generator
TCP
Status Word Register
SWE
TBMT
TSO
Start Bit
UART Transmitter
✓UART sends TBMT, a transmit Buffer Empty signal to DTE to indicate
it is ready to receive data.
✓Sensing an active TBMT, DTE sends parallel data character to
transmit data lines (TD0 - TD7).
✓It strobes them into Transmit Buffer Register using Transmit Data
Strobe signal and TBMT becomes low.
✓Contents of Transmit Buffer Register are transferred to Transmit
shift Register when TEOC, Transmit End of Character, goes active to
indicate Transmit Shift Register is empty.
✓Parity generator generates parity as per data bits.
✓Data passes through steering logic circuit and picks Start, Stop and
Parity bits as decided by Control Word in Control Register.
✓Complete word is now serially outputted on the Transmit Serial
Output TSO pin with bit rate equal to Transmit Clock frequency TCP.
✓At end of last bit, it activates TEOC.
UART Transmitter
✓When data shifts from Transfer Buffer Register to Transmit Shift
Register, Buffer Empty Logic Circuit updates Status word register to
activate TBMT.
✓Active TBMT signals DTE to load new word on Buffer Register.
✓ It will wait for active TEOC when last serial bit goes out and moves
to shift register.
✓Process continues.
UART Transmitter Timing Diagram
Word 2 Word 3 Word 4Word 1
TSO
TEOC
TDS
TBMT
UART Receiver
Receive Shift Register
Receive Buffer Register
Status Word Register
Receive
Timing
Circuit
Control
Register
Parity
Checker
Start Bit
Verify
RSI
RCP
RD7 RD0
RPE
RDAR
RFE RDA ROR
SWE
RDE
RSI – Receive serial input
RCP – Receive clock pulse
RPE – Receive parity error
RFE – Receive flag error
ROE – Receive overrun
RDA – Receive data available
SWE – Status word enable
RDAR – Receive data available reset
UART Receiver
✓ Control word defining number of stop bits, data bits and parity
information is same as used for transmitter.
✓ UART receiver ignores idle time 1s.
✓ When valid start bit is detected by start bit verification circuit, data
character is serially clocked in to Receive Shift Register.
✓ If parity is used, the parity bit is checked in Parity Check Circuit.
✓ After full data character is loaded in shift register, character is
parallel loaded into Receive Buffer Register.
✓ Receive Data Available (RDA) flag is set in Status Word Register.
✓ DTE monitors Status Word Register through Status Word Enable
SWE’.
✓ When RDA goes high, it reads character from Receive Buffer
Register using Receive Data Enable RDE’.
✓ DTE then activated RDAR’, Receive Data Available Reset, which
resets RDA pin.
✓ Process continues…
UART Receiver
✓ Status Word Register also used for diagnostic information.
✓ Receive Parity Error, RPE flag is set when received character has
parity error.
✓ Receive Framing Error RFE flag is set when the character is
received with improper number of stop bits.
✓ Receive Overrun, ROR flag is set when character in buffer is
overwritten by another character as DTE fails to check RDA and
download bits.
✓ Receive Clock for UART (RCP) is 16 times higher than receive data
rate.
✓ This allows start bit verification circuit to identify valid high-to-low
transition from among negative going noise spikes.
Start Bit
Verification
✓ Once a low is detected, verification circuit counts-off 7 clock
pulses and samples the line.
✓ If found still low, it is a valid start bit as noise spike will not hold
that long.
✓ If found high, it was a noise spike.
✓ Once a valid start bit received, verification circuit samples
incoming bits once every 16 clock cycle.
UART Receiver Timing Diagram
WORD 1 WORD 2 WORD 3
RSI
STATUS STATUS
RDA
RPE, RFE, ROR
SWE
RDE
RDAR
USRT Universal Synchronous Receiver/Transmitter
✓Used to transmit synchronous data format with clocking
information.
✓FUNCTIONS:
✓Performs parallel to serial and serial to parallel conversion at
Transmitter and Receiver respectively.
✓Perform error detection by inserting and checking parity bits at
Transmitter and Receiver respectively.
✓Inserts and detects sync characters at Transmitter and Receiver
respectively.
✓Uses a control word to accommodate options for parity and data
bits.
✓Control word must be programmed into USRT control register prior
to transmission.
✓Control word same as UART except for stop bits.
USRT Transmitter
Data Bus
DB0DB1DB7 DB6 DB5 DB4 DB3 DB2
Transmit Data Register Transmit Sync Register
TSS
Timing and
Control
Transmit
!
!
Control
Register
TCP
TDS
TBMT
SCT
NDB1
CS
NDB2
POE
NPB
Multiplexer
Transmit Shift Register TSO
USRT Transmitter
✓Transmit clock signal (TCP) is set at desired bit rate.
✓Desired SYNC character is loaded from parallel input pins (DB0-DB7)
into Transmit Sync Register by Transmit Sync Strobe TSS.
✓Data are loaded into Transmit Data Register from parallel input pins
(DB0-DB7) using Transmit Data Strobe TDS.
✓NEXT character is extracted from Transmit Data Register if TDS pulse
occurs during presently transmitted character.
✓Otherwise NEXT character is extracted from Transmit SYN Register
and SYN Character Transmitted flag (SCT) is set.
✓Transmit Buffer Empty TBMT signal is used to request next character
from DTE.
✓Serial output data appears on Transmit Serial Output TSO pin.
✓Control Register stores Control word containing number of data and
parity bits per word and type of parity.
✓CS selects the USART only when active low. CS high does not mean
standby, but means not selected that time.
USRT Receiver
!
!
Timing
and Control
Receive
RR
RCP
SCR
RPE
ROR
RDA
RDAR
RSI
Receive Shift Register
Receive Sync Register
Comparator
Receive Buffer Register
RDE
USRT Receiver
✓The Receive Clock signal (RCP) is set at desired bit rate.
✓Desired SYN character is preloaded into Receive Sync Register
through (DB0-DB7) using Receive SYN Strobe RSS.
✓On high-to-low transition of Receive Rest input (RR) in Timing and
Control Receive, receiver is placed into bitwise search mode -
✓to examine serially received data bit-by-bit for SYN character.
✓Data is loaded into Receive Shift Register bitwise through RSI,
Receive Serial Input.
✓Comparator compares contents of Receive Shift Register with
contents of Receive SYN Register.
✓On receiving SYN, SYN Character Receive (SCR) output is set.
✓SYN character is transferred to Receive Buffer Register and
receiver is placed in character mode.
✓Received next data is received bitwise but examined in character
mode and RDA is set.
USRT Receiver
✓Received data is checked for receiver overrun or receive parity
error and respective flags ROR or RPE are set if found with
problems.
✓All control signals SCR, RDA, ROR, RPE are available in Status
Word Register.
✓Correct data is outputted to DTE through pins (DB0-DB7) using
Receive Data Enable strobe RDE.
✓Receive Data Available Reset RDAR is set to reset RDA pin.

More Related Content

What's hot

I2C Protocol
I2C ProtocolI2C Protocol
I2C ProtocolAnurag Tomar
 
Registers and counters
Registers and countersRegisters and counters
Registers and countersHeman Pathak
 
Serial Communication
Serial CommunicationSerial Communication
Serial CommunicationUshaRani289
 
Lecture 3 instruction set
Lecture 3  instruction setLecture 3  instruction set
Lecture 3 instruction setPradeep Kumar TS
 
VLSI Power Reduction
VLSI Power ReductionVLSI Power Reduction
VLSI Power ReductionMahesh Dananjaya
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller Gaurav Verma
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logicDeepak John
 
8 interrupt 8051
8 interrupt 80518 interrupt 8051
8 interrupt 8051daniemol
 
Interfacing keypad
Interfacing keypadInterfacing keypad
Interfacing keypadPRADEEP
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flopsmubashir farooq
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flopssheheryar ahmed
 
Chapter 10
Chapter 10Chapter 10
Chapter 10bheemsain
 
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015JCT COLLEGE OF ENGINEERING AND TECHNOLOGY
 
AHB To APB BRIDGE.pptx
AHB To APB BRIDGE.pptxAHB To APB BRIDGE.pptx
AHB To APB BRIDGE.pptxGuckChick
 

What's hot (20)

8251 USART
8251 USART8251 USART
8251 USART
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Registers and counters
Registers and countersRegisters and counters
Registers and counters
 
8251 USART
8251 USART8251 USART
8251 USART
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
Lecture 3 instruction set
Lecture 3  instruction setLecture 3  instruction set
Lecture 3 instruction set
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
Bus aribration
Bus aribrationBus aribration
Bus aribration
 
VLSI Power Reduction
VLSI Power ReductionVLSI Power Reduction
VLSI Power Reduction
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logic
 
8 interrupt 8051
8 interrupt 80518 interrupt 8051
8 interrupt 8051
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Interfacing keypad
Interfacing keypadInterfacing keypad
Interfacing keypad
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
 
Data types in verilog
Data types in verilogData types in verilog
Data types in verilog
 
AHB To APB BRIDGE.pptx
AHB To APB BRIDGE.pptxAHB To APB BRIDGE.pptx
AHB To APB BRIDGE.pptx
 

Viewers also liked

Data Link Synchronous Protocols - SDLC, HDLC
Data Link Synchronous Protocols - SDLC, HDLCData Link Synchronous Protocols - SDLC, HDLC
Data Link Synchronous Protocols - SDLC, HDLCMadhumita Tamhane
 
Data communication protocols in centralised networks (in master:slave environ...
Data communication protocols in centralised networks (in master:slave environ...Data communication protocols in centralised networks (in master:slave environ...
Data communication protocols in centralised networks (in master:slave environ...Madhumita Tamhane
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocolRishu Seth
 
Enlace de datos - HDCL & PPP
Enlace de datos - HDCL & PPPEnlace de datos - HDCL & PPP
Enlace de datos - HDCL & PPPIsrael Cueva
 
Data communication and network Chapter -1
Data communication and network Chapter -1Data communication and network Chapter -1
Data communication and network Chapter -1Zafar Ayub
 
Chapter 1: Introduction to Data Communication and Networks
Chapter 1: Introduction to Data Communication and NetworksChapter 1: Introduction to Data Communication and Networks
Chapter 1: Introduction to Data Communication and NetworksShafaan Khaliq Bhatti
 

Viewers also liked (9)

Data Link Synchronous Protocols - SDLC, HDLC
Data Link Synchronous Protocols - SDLC, HDLCData Link Synchronous Protocols - SDLC, HDLC
Data Link Synchronous Protocols - SDLC, HDLC
 
Data communication protocols in centralised networks (in master:slave environ...
Data communication protocols in centralised networks (in master:slave environ...Data communication protocols in centralised networks (in master:slave environ...
Data communication protocols in centralised networks (in master:slave environ...
 
HDLC
HDLCHDLC
HDLC
 
Hdlc
HdlcHdlc
Hdlc
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
 
Enlace de datos - HDCL & PPP
Enlace de datos - HDCL & PPPEnlace de datos - HDCL & PPP
Enlace de datos - HDCL & PPP
 
Data communication and network Chapter -1
Data communication and network Chapter -1Data communication and network Chapter -1
Data communication and network Chapter -1
 
HDLC
HDLCHDLC
HDLC
 
Chapter 1: Introduction to Data Communication and Networks
Chapter 1: Introduction to Data Communication and NetworksChapter 1: Introduction to Data Communication and Networks
Chapter 1: Introduction to Data Communication and Networks
 

Similar to Data link control line control unit LCU

Serial Communication Uart soc
Serial Communication  Uart socSerial Communication  Uart soc
Serial Communication Uart socSatyam Sharma
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptxMeenaAnusha1
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication InterfaceSandesh Agrawal
 
AN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACINGAN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACINGTotal Project Solutions
 
serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdfKiranG731731
 
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
 
12 mt06ped019
12 mt06ped019 12 mt06ped019
12 mt06ped019 vijaydeepakg
 
Serial Communication In Atmega 16
Serial Communication In Atmega 16Serial Communication In Atmega 16
Serial Communication In Atmega 16Suren Kumar
 
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterUniversal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterTejas Shetye
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaPallav Shukla
 
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
 
Serial data transfer
Serial data transferSerial data transfer
Serial data transferDinesh Subhuraaj
 

Similar to Data link control line control unit LCU (20)

Serial Communication Uart soc
Serial Communication  Uart socSerial Communication  Uart soc
Serial Communication Uart soc
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptx
 
8251 a basic
8251 a basic8251 a basic
8251 a basic
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication Interface
 
Serial IO for 8051
Serial IO for 8051Serial IO for 8051
Serial IO for 8051
 
Uart
UartUart
Uart
 
AN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACINGAN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACING
 
Pci
PciPci
Pci
 
serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdf
 
Pentium processor
Pentium processorPentium processor
Pentium processor
 
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....
 
12 mt06ped019
12 mt06ped019 12 mt06ped019
12 mt06ped019
 
Uart wiki
Uart wikiUart wiki
Uart wiki
 
8051 serial communication-UART
8051 serial communication-UART8051 serial communication-UART
8051 serial communication-UART
 
Usart 8251
Usart 8251Usart 8251
Usart 8251
 
Serial Communication In Atmega 16
Serial Communication In Atmega 16Serial Communication In Atmega 16
Serial Communication In Atmega 16
 
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterUniversal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
 
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)
 
Serial data transfer
Serial data transferSerial data transfer
Serial data transfer
 

More from Madhumita Tamhane

Small cells I : Femto cell
Small cells I :  Femto cellSmall cells I :  Femto cell
Small cells I : Femto cellMadhumita Tamhane
 
Optical wireless communication li fi
Optical wireless communication li fiOptical wireless communication li fi
Optical wireless communication li fiMadhumita Tamhane
 
Optical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital ReceiverOptical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital ReceiverMadhumita Tamhane
 
Optical fiber communication Part 2 Sources and Detectors
Optical fiber communication Part 2 Sources and DetectorsOptical fiber communication Part 2 Sources and Detectors
Optical fiber communication Part 2 Sources and DetectorsMadhumita Tamhane
 
Optical fiber communication Part 1 Optical Fiber Fundamentals
Optical fiber communication Part 1 Optical Fiber FundamentalsOptical fiber communication Part 1 Optical Fiber Fundamentals
Optical fiber communication Part 1 Optical Fiber FundamentalsMadhumita Tamhane
 
Colout TV Fundamentals
Colout TV FundamentalsColout TV Fundamentals
Colout TV FundamentalsMadhumita Tamhane
 
Black and white TV fundamentals
Black and white TV fundamentalsBlack and white TV fundamentals
Black and white TV fundamentalsMadhumita Tamhane
 
Telecommunication switching system
Telecommunication switching systemTelecommunication switching system
Telecommunication switching systemMadhumita Tamhane
 
Flyod's algorithm for finding shortest path
Flyod's algorithm for finding shortest pathFlyod's algorithm for finding shortest path
Flyod's algorithm for finding shortest pathMadhumita Tamhane
 
ISDN Integrated Services Digital Network
ISDN Integrated Services Digital NetworkISDN Integrated Services Digital Network
ISDN Integrated Services Digital NetworkMadhumita Tamhane
 
Asynchronous Transfer Mode ATM
Asynchronous Transfer Mode  ATMAsynchronous Transfer Mode  ATM
Asynchronous Transfer Mode ATMMadhumita Tamhane
 
Setting Artificial Neural Networks parameters
Setting Artificial Neural Networks parametersSetting Artificial Neural Networks parameters
Setting Artificial Neural Networks parametersMadhumita Tamhane
 
Weight enumerators of block codes and the mc williams
Weight  enumerators of block codes and  the mc williamsWeight  enumerators of block codes and  the mc williams
Weight enumerators of block codes and the mc williamsMadhumita Tamhane
 
Justesen codes alternant codes goppa codes
Justesen codes alternant codes goppa codesJustesen codes alternant codes goppa codes
Justesen codes alternant codes goppa codesMadhumita Tamhane
 
The stack algorithm vs viterbi algorithm
The stack algorithm vs viterbi algorithmThe stack algorithm vs viterbi algorithm
The stack algorithm vs viterbi algorithmMadhumita Tamhane
 
Bch and reed solomon codes generation in frequency domain
Bch and reed solomon codes generation in frequency domainBch and reed solomon codes generation in frequency domain
Bch and reed solomon codes generation in frequency domainMadhumita Tamhane
 

More from Madhumita Tamhane (20)

Fiber optic sensors
Fiber optic sensors  Fiber optic sensors
Fiber optic sensors
 
OFDM for LTE
OFDM for LTEOFDM for LTE
OFDM for LTE
 
Small cells I : Femto cell
Small cells I :  Femto cellSmall cells I :  Femto cell
Small cells I : Femto cell
 
Optical wireless communication li fi
Optical wireless communication li fiOptical wireless communication li fi
Optical wireless communication li fi
 
Optical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital ReceiverOptical Fiber Communication Part 3 Optical Digital Receiver
Optical Fiber Communication Part 3 Optical Digital Receiver
 
Optical fiber communication Part 2 Sources and Detectors
Optical fiber communication Part 2 Sources and DetectorsOptical fiber communication Part 2 Sources and Detectors
Optical fiber communication Part 2 Sources and Detectors
 
Optical fiber communication Part 1 Optical Fiber Fundamentals
Optical fiber communication Part 1 Optical Fiber FundamentalsOptical fiber communication Part 1 Optical Fiber Fundamentals
Optical fiber communication Part 1 Optical Fiber Fundamentals
 
Colout TV Fundamentals
Colout TV FundamentalsColout TV Fundamentals
Colout TV Fundamentals
 
Black and white TV fundamentals
Black and white TV fundamentalsBlack and white TV fundamentals
Black and white TV fundamentals
 
Telecommunication switching system
Telecommunication switching systemTelecommunication switching system
Telecommunication switching system
 
X.25
X.25X.25
X.25
 
Flyod's algorithm for finding shortest path
Flyod's algorithm for finding shortest pathFlyod's algorithm for finding shortest path
Flyod's algorithm for finding shortest path
 
Line codes
Line codesLine codes
Line codes
 
ISDN Integrated Services Digital Network
ISDN Integrated Services Digital NetworkISDN Integrated Services Digital Network
ISDN Integrated Services Digital Network
 
Asynchronous Transfer Mode ATM
Asynchronous Transfer Mode  ATMAsynchronous Transfer Mode  ATM
Asynchronous Transfer Mode ATM
 
Setting Artificial Neural Networks parameters
Setting Artificial Neural Networks parametersSetting Artificial Neural Networks parameters
Setting Artificial Neural Networks parameters
 
Weight enumerators of block codes and the mc williams
Weight  enumerators of block codes and  the mc williamsWeight  enumerators of block codes and  the mc williams
Weight enumerators of block codes and the mc williams
 
Justesen codes alternant codes goppa codes
Justesen codes alternant codes goppa codesJustesen codes alternant codes goppa codes
Justesen codes alternant codes goppa codes
 
The stack algorithm vs viterbi algorithm
The stack algorithm vs viterbi algorithmThe stack algorithm vs viterbi algorithm
The stack algorithm vs viterbi algorithm
 
Bch and reed solomon codes generation in frequency domain
Bch and reed solomon codes generation in frequency domainBch and reed solomon codes generation in frequency domain
Bch and reed solomon codes generation in frequency domain
 

Recently uploaded

Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
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
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
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
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
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
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 

Recently uploaded (20)

Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
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
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
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
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
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
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 

Data link control line control unit LCU

  • 1. Data Link Control Line Control Unit LCU
  • 2. Parallel data transfer ✓Signaling elements sent down the line all 8 bits at a time. ✓One clock loads 8 bits. ✓8 times faster than serial transmission. ✓Data available to PC in desired form. ✓Best suitable for internal BUS. ✓Requires much larger cabling infrastructure.(One wire per bit) ✓Can not be used for longer distances as delay in each wire may be different.
  • 3. Serial data transfer ✓Signaling elements sent down the line one at a time. ✓One clock loads one symbol. ✓Each signaling element may be ✓ Less than a bit – Manchester code ✓ One bit long -- NRZ-L, FSK, etc.. ✓ More than a bit – QPSK. ✓Requires much lesser cabling. ✓Can be used for longer distances. ✓Slower than parallel transmission. ✓Synchronization is a critical issue.
  • 4. Serial data transfer ✓Receiver should recognize beginning and end of bit stream and each bit duration. ✓If Transmitter and Receiver are not synchronized, bits sampled would be erroneous. ✓Error may not occur immediately but will occur later due to cumulative effect.
  • 5. Serial data transfer-- Example ✓Tr rate is 10,000 bits/ s. ✓Bit time T = 0.1ms ✓Bits sampled at mid-bit time = 0.05ms away from both ends. ! ! ! ! ✓Receiver clock faster or slower by 1%. ✓Each pulse will be sampled at a cumulative of 0.001ms. ✓After how many bits, it would be samples at the edge of the bit? ✓50 bits. ✓51st bit sampled will be the adjacent bit – error. ✓Larger the CLK difference, earlier the error. 0.1ms 0.05ms
  • 6. Asynchronous Transmission ✓Data sent one character at a time. ✓Data can be 5 to 8 bits in length. ! ! ! ! ✓Receiver resynchronizes with each character. ✓Larger difference in CLK of TR and REC can also be accommodated as only 8 bits max transmitted together. How much ? ✓Receiver alerted with a start bit.
  • 7. Asynchronous Transmission ! ! ! ! ! ! ! ✓Idle ‘1’ is negative voltage and ‘0’ is positive voltage. ✓Receiver is activated with one bit start bit i.e. positive pulse. ✓Followed by 5 to 8 data bits and one bit parity. ✓Frame ends with 1 to 2 stop bits – idle 1’s. ✓New character will have a new start bit. START BIT One character P STOP BITs 0 1
  • 8. Asynchronous Transmission ✓ADVANTAGES: ✓Simple and cheap. ✓Resynchronizes at every start bit. ✓Very good for low speed transmission. ✓Example: PC connected to real time terminal where operator feeds manually. ✓DISADVANTAGES: ✓2 to 3 bits overhead per character(25%). ✓Additional gap between words.
  • 9. Synchronous Transmission ✓Blocks of characters or bits transmitted without start or stop bits. ✓REC synchronizes with either separate clocking line or clocking info embedded in data. ✓Pre-amble and post-amble bits sent at beginning and end respectively for synchronization. ✓TYPES: ✓ Character oriented transmission ✓ Bit oriented transmission
  • 10. Character Oriented Synchronous Transmission ! ! ! ! ! ✓Data and control information both in character form. ✓Individual bits have no meaning, except in character form. ✓SYNC are predetermined unique bit pattern in character form for synchronization of Rec. ✓Post amble can be avoided by stating length of data. ✓Overheads are very less as large chunk of data can be sent with one set of headers. Other control information S Y N S Y N S Y N S Y N DATAPreamble Post amble Address
  • 11. Bit Oriented Synchronous Transmission ! ! ! ! ! ✓Data and control information both in bit form. ✓Every bit has a definition. ✓Overheads are very less as large chunk of data can be sent with one set of headers. Control Field F
 L
 A
 G 
…F
 L
 A
 G DATA8 bit flag 8 bit flag Address CRC
  • 12. Line Control Unit LCU ✓PC is Data Terminal Equipment DTE. ✓DTE feeds Data Communication Equipment DCE. (MODEM). ✓DTE gives parallel data, which needs to be carried to DCE as serial data. ✓LCU converts parallel data to serial data. ✓TYPES: ✓ UART Universal Asynchronous Receiver/Transmitter. ✓ USRT Universal Synchronous Receiver/Transmitter.
  • 13. UART Universal Asynchronous Receiver/Transmitter ✓Used to transmit asynchronous data format without clocking information. ✓FUNCTIONS: ✓Performs parallel to serial and serial to parallel conversion at Transmitter and Receiver respectively. ✓Perform error detection by inserting and checking parity bits at Transmitter and Receiver respectively. ✓Inserts and detects start and stop bits at Transmitter and Receiver respectively. ✓Uses a control word to accommodate options for parity, data and stop bits. ✓Control word must be programmed into UART control register prior to transmission.
  • 14. UART Control Word ✓START Bit: Always a single bit ‘0’, +ve voltage. No other option. ✓Number of Parity Bit NPB: ✓ NPB ‘1’ = No parity bit used.(RPE disable) ✓ NPB ‘0’ = One Parity bits used ✓ EVEN or ODD Parity POE: ✓ POE ‘1’ = Even Parity ✓ POE ‘0’ = ODD Parity ✓ Number of STOP Bits NSB ✓ NSB ‘1’ = 2 stop bits ✓ NSB ‘0’ = 1 stop bits
  • 15. UART Control Word ✓Number of DATA Bit NDB1, NDB2: ! ! ! ! ! ! ! ✓If NDB2-NDB1 is 11 and NSB is 1 then: ✓ NSB = 1.5 NDB2 NDB1 Bits/word 0 0 1 1 0 1 0 1 5 6 7 8
  • 16. UART Transmitter Transmit Buffer Register TD7 TD8TD5 TD6TD7 TD4 TD9 TD0 TDS Control Register NPB NSB NDB1 NDB2 CS Parity Generator Data bits, Parity bits, Stop bits Steering Logic Circuit O/P Ckt Buffer Empty Logic Circuit TEOC Timing Generator TCP Status Word Register SWE TBMT TSO Start Bit
  • 17. UART Transmitter ✓UART sends TBMT, a transmit Buffer Empty signal to DTE to indicate it is ready to receive data. ✓Sensing an active TBMT, DTE sends parallel data character to transmit data lines (TD0 - TD7). ✓It strobes them into Transmit Buffer Register using Transmit Data Strobe signal and TBMT becomes low. ✓Contents of Transmit Buffer Register are transferred to Transmit shift Register when TEOC, Transmit End of Character, goes active to indicate Transmit Shift Register is empty. ✓Parity generator generates parity as per data bits. ✓Data passes through steering logic circuit and picks Start, Stop and Parity bits as decided by Control Word in Control Register. ✓Complete word is now serially outputted on the Transmit Serial Output TSO pin with bit rate equal to Transmit Clock frequency TCP. ✓At end of last bit, it activates TEOC.
  • 18. UART Transmitter ✓When data shifts from Transfer Buffer Register to Transmit Shift Register, Buffer Empty Logic Circuit updates Status word register to activate TBMT. ✓Active TBMT signals DTE to load new word on Buffer Register. ✓ It will wait for active TEOC when last serial bit goes out and moves to shift register. ✓Process continues.
  • 19. UART Transmitter Timing Diagram Word 2 Word 3 Word 4Word 1 TSO TEOC TDS TBMT
  • 20. UART Receiver Receive Shift Register Receive Buffer Register Status Word Register Receive Timing Circuit Control Register Parity Checker Start Bit Verify RSI RCP RD7 RD0 RPE RDAR RFE RDA ROR SWE RDE RSI – Receive serial input RCP – Receive clock pulse RPE – Receive parity error RFE – Receive flag error ROE – Receive overrun RDA – Receive data available SWE – Status word enable RDAR – Receive data available reset
  • 21. UART Receiver ✓ Control word defining number of stop bits, data bits and parity information is same as used for transmitter. ✓ UART receiver ignores idle time 1s. ✓ When valid start bit is detected by start bit verification circuit, data character is serially clocked in to Receive Shift Register. ✓ If parity is used, the parity bit is checked in Parity Check Circuit. ✓ After full data character is loaded in shift register, character is parallel loaded into Receive Buffer Register. ✓ Receive Data Available (RDA) flag is set in Status Word Register. ✓ DTE monitors Status Word Register through Status Word Enable SWE’. ✓ When RDA goes high, it reads character from Receive Buffer Register using Receive Data Enable RDE’. ✓ DTE then activated RDAR’, Receive Data Available Reset, which resets RDA pin. ✓ Process continues…
  • 22. UART Receiver ✓ Status Word Register also used for diagnostic information. ✓ Receive Parity Error, RPE flag is set when received character has parity error. ✓ Receive Framing Error RFE flag is set when the character is received with improper number of stop bits. ✓ Receive Overrun, ROR flag is set when character in buffer is overwritten by another character as DTE fails to check RDA and download bits. ✓ Receive Clock for UART (RCP) is 16 times higher than receive data rate. ✓ This allows start bit verification circuit to identify valid high-to-low transition from among negative going noise spikes.
  • 23. Start Bit Verification ✓ Once a low is detected, verification circuit counts-off 7 clock pulses and samples the line. ✓ If found still low, it is a valid start bit as noise spike will not hold that long. ✓ If found high, it was a noise spike. ✓ Once a valid start bit received, verification circuit samples incoming bits once every 16 clock cycle.
  • 24. UART Receiver Timing Diagram WORD 1 WORD 2 WORD 3 RSI STATUS STATUS RDA RPE, RFE, ROR SWE RDE RDAR
  • 25. USRT Universal Synchronous Receiver/Transmitter ✓Used to transmit synchronous data format with clocking information. ✓FUNCTIONS: ✓Performs parallel to serial and serial to parallel conversion at Transmitter and Receiver respectively. ✓Perform error detection by inserting and checking parity bits at Transmitter and Receiver respectively. ✓Inserts and detects sync characters at Transmitter and Receiver respectively. ✓Uses a control word to accommodate options for parity and data bits. ✓Control word must be programmed into USRT control register prior to transmission. ✓Control word same as UART except for stop bits.
  • 26. USRT Transmitter Data Bus DB0DB1DB7 DB6 DB5 DB4 DB3 DB2 Transmit Data Register Transmit Sync Register TSS Timing and Control Transmit ! ! Control Register TCP TDS TBMT SCT NDB1 CS NDB2 POE NPB Multiplexer Transmit Shift Register TSO
  • 27. USRT Transmitter ✓Transmit clock signal (TCP) is set at desired bit rate. ✓Desired SYNC character is loaded from parallel input pins (DB0-DB7) into Transmit Sync Register by Transmit Sync Strobe TSS. ✓Data are loaded into Transmit Data Register from parallel input pins (DB0-DB7) using Transmit Data Strobe TDS. ✓NEXT character is extracted from Transmit Data Register if TDS pulse occurs during presently transmitted character. ✓Otherwise NEXT character is extracted from Transmit SYN Register and SYN Character Transmitted flag (SCT) is set. ✓Transmit Buffer Empty TBMT signal is used to request next character from DTE. ✓Serial output data appears on Transmit Serial Output TSO pin. ✓Control Register stores Control word containing number of data and parity bits per word and type of parity. ✓CS selects the USART only when active low. CS high does not mean standby, but means not selected that time.
  • 28. USRT Receiver ! ! Timing and Control Receive RR RCP SCR RPE ROR RDA RDAR RSI Receive Shift Register Receive Sync Register Comparator Receive Buffer Register RDE
  • 29. USRT Receiver ✓The Receive Clock signal (RCP) is set at desired bit rate. ✓Desired SYN character is preloaded into Receive Sync Register through (DB0-DB7) using Receive SYN Strobe RSS. ✓On high-to-low transition of Receive Rest input (RR) in Timing and Control Receive, receiver is placed into bitwise search mode - ✓to examine serially received data bit-by-bit for SYN character. ✓Data is loaded into Receive Shift Register bitwise through RSI, Receive Serial Input. ✓Comparator compares contents of Receive Shift Register with contents of Receive SYN Register. ✓On receiving SYN, SYN Character Receive (SCR) output is set. ✓SYN character is transferred to Receive Buffer Register and receiver is placed in character mode. ✓Received next data is received bitwise but examined in character mode and RDA is set.
  • 30. USRT Receiver ✓Received data is checked for receiver overrun or receive parity error and respective flags ROR or RPE are set if found with problems. ✓All control signals SCR, RDA, ROR, RPE are available in Status Word Register. ✓Correct data is outputted to DTE through pins (DB0-DB7) using Receive Data Enable strobe RDE. ✓Receive Data Available Reset RDAR is set to reset RDA pin.