Chapter 1 Line Code Encoder
Chapter 1 Line Code Encoder
The data stream is shown in figure 1-1(c). NRZ line coding denotes for a single bit
time, the waveform will not return to 0 V. The data stream is shown in figure 1-1(a). As
a result of the characteristics of signal, line coding also can be divided into two types,
which are unipolar signal and bipolar signal. Unipolar signal denotes that the signal
amplitude varies between a positive voltage level which are +V and 0 V. The only
different between bipolar signal and unipolar signal is the signal amplitude varies
between a positive and a negative voltage level which are +V and -V. Figure 1-1 shows
different types of line code signals and we will discuss the encoding signals in next section.
1. U nipolar N onreturn-to-zero S ignal Encode
The data stream of unipolar nonreturn-to-zero (UNI-NRZ) is shown in fugure 1-1(a).
From figure 1-1(a), when the data bit is 1, the width and the gap between bits of UNI-NRZ are
equal to each others; when the data bit is 0, then the pulse is represented as 0V. The circuit
diagram of UNI-NRZ encoder is shown in figure 1-2. As a result of the data signal and the NRZ
encoder signal are similar, therefore, we only need to add a buffer in front of the circuit.
variations in a bit time, which is easy for receiver synchronization. From figure 1-1,
compare the data signal, clock signal and data after encoding, we know that in order to
obtain the encoding data of RZ, we need to "AND" the data signal and clock signal. The
circuit diagram of unipolar return-to-zero encoder is shown in figure 1-4.
type of encode is common used by telephone industry which is pulse coding modulation
(PCM).
Figure 1-6 is the circuit diagram of AMI signal encode. In order to obtain the AMI
encode signal, the data and clock signals need to pass through the buffer stage,
which is comprised by a pair of transistors and NOT gates. After that we need to "AND"
the output of data signal and clock signal, then pass through a divider circuit by
utilizing clock as switch exchange. The final signal is the AMI signal. The minimum
bandwidth of AMI is less than UNI-RZ and BIP-RZ. An additional advantage of AMI is
the transmission errors can be detected by detecting the violations of the alternate-one
rule.
2. Setting the frequency of function generator to 2 kHz TTL signal and connect this signal
to the CLK I/P in figure DCT1-2 and CLK at the left bottom. After that connect the Data
O/P at the left bottom to the Data I/P in figure DCT1-2. Then observe on the waveforms
of CLK I/P, Data I/P, TP1 and BIP-RZ O/P by using oscilloscope, and record the
measured results in table 1-5.
3. According to the input signals in table 1-5, repeat step 2 and record the measured results
in table 1-5.
4. Setting frequency of function generator to 2 kHz TTL signal and connect this signal to
the CLK I/P in figure DCT1-2. Then setting another frequency of function generator to 1
kHz TTL signal and connect this signal to the Data I/P in figure DCT1-2. Then observe
on waveforms of CLK I/P, Data I/P, TP1 and BIP-RZ O/P by using oscilloscope, and
record the measured results in table 1-6.
5. According to the input signals in table 1-6, repeat step 4 and record the measured results
in table 1-6.
3. According to the input signals in table 1-7, repeat step 2 and record the measured results in
table 1-7.
4. Setting the frequency of function generator to 2 kHz TTL signal and connect this
signal to the CLK I/P in figure DCT1-3. Then setting another frequency of
function generator to 1 kHz TTL signal and connect this signal to the Data I/P in
figure DCT1-3. Then observe on the waveforms of CLK I/P, Data I/P, TP1, TP2 , TP3 , TP4
, TP5 and AMI O/P by using oscilloscope, and record the measured results in table 1-8.
5. According to the input signals in table 1-8, repeat step 4 and record the measured results in
table 1-8.
Input Signal
Frequencies
(Data I/P)
1 kHz
2kHz
5kHz
8kHz
UNI-NRZ O/P
Input Signal
Frequencies
(Data I/P)
2 kHz
3.5 kHz
5kHz
7.5 kHz
TP1
BIP-NRZ O/P
Input Signal
Frequencies
(Data I/P)
CLK I/P
2 kHz
3.5 kHz
5kHz
7.5 kHz
Data I/P
UNI-RZ O/P
Input Signal
Frequencies
CLK I/P
Data I/P
2 kHz
1 kHz
3.5 kHz
1.5 kHz
5kHz
2.5 kHz
7.5 kHz
4 kHz
CLK I/P
Data I/P
UNI-RZ O/P
Input Signal
Frequencies (Clock
I/P)
CLK I/P
Data I/P
TP1
BIP-RZ O/P
CLK I/P
Data I/P
TP1
BIP-RZ O/P
2 kHz
5kHz
Input Signal
Output Signal Waveforms
Frequencies
CLK I/P
DATA I/P
2 kHz
5kHz
1 kHz
CLK I/P
Data I/P
TP1
BIP-RZ O/P
CLK I/P
Data I/P
TP1
BIP-RZ O/P
2.5 kHz
Input Signal
Data I/P
TP1
TP2
TP3
TP4
TP5
AMI O/P
100 Hz
Input Signal
500 Hz
CLK I/P
Data I/P
TP1
TP2
TP3
TP4
TP5
AMI O/P
Input Signal
Output Signal Waveforms
Frequencies
CLK I/P
Data I/P
100 Hz
CLK I/P
Data I/P
TP1
TP2
TP3
TP4
TP5
AMI O/P
50 Hz
Input Signal
Output Signal Waveforms
Frequencies
CLK I/P
Data I/P
500 Hz
CLK I/P
Data I/P
TP1
TP2
TP3
TP4
TP5
AMI O/P
250 Hz
Input Signal
Frequencies (CLK I/P)
2k
3k
5k
8k
Data I/P
Manchester O/P
Input Signal
Frequencies
CLK I/P
Data I/P
2 kHz
1 kHz
3.5 kHz
1.5 kHz
5kHz
2.5 kHz
8 kHz
4 kHz
CLK I/P
Data I/P
Manchester O/P