Professional Documents
Culture Documents
USART & HDLC Assign of Mojnu Miah
USART & HDLC Assign of Mojnu Miah
System
Submitted by: Submitted to:
Name : Mojnu Miah Teacher’s Name: Maruf Al Hossain
Department : CSE 11th DH Lecturer of the Department of CSE
Roll : 21-02-08-001
Topics Name:
Asynchronous serial interfaces are cheap, easy to use, and until recently,
very common. USB is well on its way to replace the serial comm ports on
PCs.
How can a receiving board “know” where the center of a bit frame
0 1 2 3
start bit
- Need to know how fast the bits are coming (baud rate)
- Need to know where the start bit begins (its falling
edge)
- Then we know when to sample
0 1 2 3
start bit
sample sample sample sample
- The USART uses a 16x internal clock to sample the start
bit.
One clock before the expected center of the start bit, 3 samples are
taken. If 2 or 3 are detected as high, the search for another falling edge is
started.
If at least one sample is low, the start bit is validated. If so, begin
sampling 16 clocks from center of start bit.
- The USART internal clock is set by the UBRR
register.
-3V
+3V
USART and Asynchronous
Communication
- USART RS232 transceiver
-Charge Pump inverter used
to generate negative
voltages.
USART and Asynchronous Communication
- USART Electrical path
• What is HDLC?
In HDLC, data is organized into a unit (called a frame) and sent across a
network to a destination that verifies its successful arrival. The HDLC
protocol also manages the flow or pacing at which data is sent.
HDLC is one of the most commonly used internet protocols (IP) in what is
Layer 2 of the industry communication reference model called Open
Systems Interconnection (OSI).
•Layer 1 is the detailed physical level that generates and receives the
electronic signals.
•Layer 3 is the higher level that has knowledge about the network,
including access to router tables that indicate where to forward or send
data.
How is HDLC used in IT networks?
There are three types of commonly used HDLC frame structures. They are
as follows: