Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Clock Recovery: The first problem taught you output distortions can cause inter-symbol interference if you send too fast. However, we assumed in Problem 1

image text in transcribedimage text in transcribed

3. Clock Recovery: The first problem taught you output distortions can cause inter-symbol interference if you send too fast. However, we assumed in Problem 1 that the sender and receiver clocks were perfectly synchronized. In reality, they are not and we need clock synchronization. In Problem 3 you will simulate the effect of clock recovery on some bits sent using 4-5 encoding using a clock synchronization algorithm I give you below Assume the preamble has been received and the receiver is basically in sync except for possible clock drift. Thus the receiver is sampling according to its current clock (see figure 2) and shoulod be expecting transitions only at what it thinks are bit boundaries (see dotted lines in figure). However, because of clock drift the actual transitions may be a little off (see the solid line in Figure 2). Remember that in 4-5 coding you are guaranteed to get at least one transition in every 5 consecutive bits; however, you may get up to 5 transitions. Pseudocode for the receiver clock recovery algorithm is as follows. Receiver Code Data Structures: T: real constant; (* nomimal time to send a bit, input to program *) P: real; (* predicted next time at which a transition might occur*) A: real; (* actual real time at which a transition occurs *) lag: real; (* difference between predicted and expected *) After preamble is detected: Initialize real time clock to start at 0; lag O; StartTimer (T/2); Wait (TimerExpiry); Do until end of frame P PT+ lag; Output (SampleSignal); (* output sampled value when timer expires *) StartTimer (T + lag); 3. Clock Recovery: The first problem taught you output distortions can cause inter-symbol interference if you send too fast. However, we assumed in Problem 1 that the sender and receiver clocks were perfectly synchronized. In reality, they are not and we need clock synchronization. In Problem 3 you will simulate the effect of clock recovery on some bits sent using 4-5 encoding using a clock synchronization algorithm I give you below Assume the preamble has been received and the receiver is basically in sync except for possible clock drift. Thus the receiver is sampling according to its current clock (see figure 2) and shoulod be expecting transitions only at what it thinks are bit boundaries (see dotted lines in figure). However, because of clock drift the actual transitions may be a little off (see the solid line in Figure 2). Remember that in 4-5 coding you are guaranteed to get at least one transition in every 5 consecutive bits; however, you may get up to 5 transitions. Pseudocode for the receiver clock recovery algorithm is as follows. Receiver Code Data Structures: T: real constant; (* nomimal time to send a bit, input to program *) P: real; (* predicted next time at which a transition might occur*) A: real; (* actual real time at which a transition occurs *) lag: real; (* difference between predicted and expected *) After preamble is detected: Initialize real time clock to start at 0; lag O; StartTimer (T/2); Wait (TimerExpiry); Do until end of frame P PT+ lag; Output (SampleSignal); (* output sampled value when timer expires *) StartTimer (T + lag)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago