Professional Documents
Culture Documents
Course 7 Agenda
• Digital encoding techniques (continuation):
• Biphase (Manchester, differential Manchester)
• Block coding techniques: 4B/5B, HDB-3, B8ZS
Biphasic codes
1
11/4/2019
2
11/4/2019
3
11/4/2019
• Pros
• Predictable transition at the middle of each bit, which
can be used for synchronization (“self-clocking” codes)
• Error detection possible due to the same feature
• No DC component
• Cons
• Reduced bandwidth efficiency (half the bandwidth
efficiency of NRZ)
• Modulation rate is two times the data rate D=2R
4
11/4/2019
Block coding
• Use sequences with some known transitions to replace blocks
of constant voltage level
• Filling sequence
• Must produce enough transitions in order to make easier the
synchronization
• Must be recognized by receiver and replaced with original
sequence
• Same length as the original sequence (no efficiency
degradation)
• No DC component
• No long sequences of constant line signal
• The data rate is preserved (no overhead, redundancy)
• To provide error detection capability
• Most widely used are HDB-3 and B8ZS, both based on AMI
5
11/4/2019
4B to 5B encoding table
6
11/4/2019
B8ZS Example
the last preceding voltage pulse positive, the code for 8 zeros 000+-0-+.
the last preceding voltage pulse negative, the code for 8 zeros 000-+0+-.
7
11/4/2019
HDB3 Example 1
8
11/4/2019
HDB3 Example 2
17
HDB3 Example 3
9
11/4/2019
10
11/4/2019
21
11
11/4/2019
12
11/4/2019
13
11/4/2019
Used in:
• Video Conferencing
14
11/4/2019
15
11/4/2019
Quantization
• Original signal
has continuous
amplitudes in its
Analog dynamic range
signal to be • PAM - signal is a
transmitted discrete pulse train
with constant
amplitude values
Continuous which periodically
PAM-pulse samples the
train analogue signal
• Quantized PAM
signal has only the
values that can be
Quantized quantized by the
PAM-pulse words available
train (here by 3 bits
words)
31
32
16
11/4/2019
33
Examples
1.Good voice reproduction can be obtained with a 7-bit
coding (128 quantizing levels).
Voice bandwidth occupies 4 kHz, so in order to satisfy
the Nyquist theorem samples should be taken at least
8000 samples per second.
This implies a data rate of 8000x7bits=56 kbps for the
PCM encoded digital data. This would require conform
to Nyquist criteria a low pass filter with a bandwidth of
at least R/2=B=56/2=28 kHz.
17
11/4/2019
Example 3
• What bandwidth should be needed to satisfy the
Nyquist criteria to transmit voice over a channel
using for quantization 256 levels?
Answer : 32kHz
35
18
11/4/2019
37
19
11/4/2019
39
40
20
11/4/2019
Companding
42
21
11/4/2019
Sampling Rate
• Chose the right sampling rate, not too high, and not too low.
• Remember to satisfy the Nyquist sampling theorem: the PCM
sampling rate must be at least double the highest frequency of
the original analog waveform to ensure a reasonable
reproduction.
Sampling Rate - telephones
• Highest voice frequency is 3.4KHz, so we want at least a
sampling rate of 6800 samples/sec. (Nyquist rate)
• DVD Audio: sample rates of 96 and 192 KHz, but most people
can't hear the difference.
• DVD might have a precision of 24 bits
44
22
11/4/2019
Codec translation
45
Delta Modulation
46
23
11/4/2019
48
24
11/4/2019
49
25
11/4/2019
51
52
26