TDM PCM Transmitter & Receiver Overview
TDM PCM Transmitter & Receiver Overview
Learning Material
Ver.1.2
Safety Instructions
2.
3.
4.
5.
ST2104s Features
10
6.
10
7.
Theory
11
I.
13
II.
Theory of sampling
15
III.
Nyquists Theorem
16
IV.
Sampling Techniques
17
21
24
28
31
PN sequence generator
34
X.
A/D conversion
39
XI.
D/A conversion
41
43
XIII.
Digital transmission
45
XIV.
42
V.
VI.
VII.
VIII.
IX.
XII.
8.
Experiments
46
Experiment 1
Study of Error Check Codes
52
Experiment 2
Study of Analog to Digital Conversion
56
Experiment 3
Study of Control Signals and their Timings
60
Experiment 4
Study of Time Division Multiplexing
64
Experiment 5
Study of Pseudo Random Sync Code Generator
66
Experiment 6
Study of Three Modes of Transmission
70
Experiment 7
Computer Communication using RS232 interface via
ST2103 & ST2104
80
Experiment 8
Multi point to multipoint communication using RS232
interface via ST2103 & ST2104
83
Experiment 9
Point to multipoint communication using RS232 interface
via ST2103 & ST2104
86
9.
Switched Faults
98
10.
90
11.
91
12.
Warranty
98
13.
List of Accessories
98
Safety Instructions
Read the following safety instructions carefully before operating the instrument. To
avoid any personal injury or damage to the instrument or any product connected to it.
Do not operate the instrument if suspect any damage to it.
The instrument should be serviced by qualified personnel only.
For your safety:
Use proper Mains cord
Observe Terminal Ratings : To avoid fire or shock hazards, observe all ratings and
marks on the instrument.
Use only the proper Fuse
2.
3.
Introduction
The ST2103 & 2104, TDM PCM transmitter & receiver trainer demonstrates the
basic scheme used to transmit an information signal using coding technique. It covers
very basic concepts like role of sample Amplifier, Analog to digital conversion,
Pseudo random synchro code generator, Digital to analog conversion, Pseudo random
synchro code detector of sampling pulse while transmitting a signal. It also
demonstrates signal recovery using low pass filters of different orders.
Know your ST2103 trainer better:
Function Generator Section:
It consists of two types of wave form generator:
DC level: With the help of DC level amplitude of dc signal can be varied from
minimum to maximum.
Sine wave generator: It generates 1 KHz & 2 KHz sine waves whose frequency can
be varied and the results of changing frequency can be analyzed for TDM PCM
transmitter and receiver.
Transmitter timing logic section:
It comprises of slow, fast modes & transmitter clock with timing logic which provides
necessary timing function for various section of the trainer for synchronization
purpose.
Pseudo random synchro code generator section:
This section can be used for transmitting data in secure manner.
Sampling & Analog to digital converter section:
This section provides two input channels for applying input signals and provides
multiplexed output with sampling of signals. Sampled signals are applied to the
analog to digital converter & applied to error check code generator and fed to shift
register for transmitting the signals by multiplexing it with Pseudo random synchro
code.
Know your ST2104 trainer better: It comprises of following sections.
Clock regeneration circuit: It receives the clock transmitted from transmitter and
again generates the same clock pulses for receiving process.
Pseudo random synchro code detector:
This section can be used for receiving data in secure manner.
Sampling & Digital to Analog converter section:
This section receives the multiplexed data from receiver section and applied to error
check code detector and then applied to digital to analog converter to get the analog
signals which are sampled and applied to low pass filter for generation of analog
signals
ST2103
ST2104
ST2103:
Features
PCM Transmitter.
Fast & Slow modes for real time operation and data flow examination.
Technical Specifications
Crystal Frequency
12 MHz
Input Channels
Two
Multiplexing
Modulation
Sync Signal
Operating Mode
PC -PC communication
Port
Baud Rate
Test Points
49 in numbers
Interconnections
2 mm Sockets
Power Supply
230 V 10%, 50 Hz
Power Consumption
4 VA (approximately)
Dimensions (mm)
Weight
ST2104:
Features
Fast & Slow modes for real time operation and data flow examination.
Technical Specifications
Input Channel
Demodulation
Clock Regeneration
Operating Speeds
Error Correction
Hamming code
PC- PC communication
Port
Baud rate
Test Points
56 in numbers
Interconnections
4 mm sockets
Power Requirement
Dimensions (mm)
Weight
10
11
Sampling
2.
Quantizing
3.
Coding
Figure 1
12
13
14
Fs > 2 Fmax
The frequency 2 Fmax is called the Nyquist sampling rate. Half of this value, Fmax, is
sometimes called the Nyquist frequency.
The sampling theorem is considered to have been articulated by Nyquist in 1928 and
mathematically proven by Shannon in 1949. Some books use the term "Nyquist
Sampling Theorem", and others use "Shannon Sampling Theorem". They are in fact
the same sampling theorem.
The sampling theorem clearly states what the sampling rate should be for a given
range of frequencies. In practice, however, the range of frequencies needed to
faithfully record an analog signal is not always known beforehand. Nevertheless,
engineers often can define the frequency range of interest. As a result, analog filters
are sometimes used to remove frequency components outside the frequency range of
interest before the signal is sampled.
For example, the human ear can detect sound across the frequency range of 20 Hz to
20 KHz. According to the sampling theorem, one should sample sound signals at least
at 40 KHz in order for the reconstructed sound signal to be acceptable to the human
ear. Components higher than 20 KHz cannot be detected, but they can still pollute the
sampled signal through aliasing. Therefore, frequency components above 20 KHz are
removed from the sound signal before sampling by a band-pass or low-pass analog
filter.
15
Nyquist Criterion
As shown-in the figure 6 the lowest sampling frequency that can be used without the
sidebands overlapping is twice the highest frequency component present in the
information signal. If we reduce this sampling frequency even further, the sidebands
and the information signal will overlap and we cannot recover the information signal
simply by low pass filtering. This phenomenon is known as fold-over distortion or
aliasing.
Sampling Frequency
2 fm
2 x 3.4 KHz
6.8 KHz
Practically, the sampling frequency is kept slightly more than the required rate. In
telephony the standard sampling rate is 8 KHz. Sample quantifies the instantaneous
value of the analog signal point at sampling point to obtain pulse amplitude output.
16
Sampling Techniques
There are three types of sampling techniques as under:
1.
2.
Natural sampling
4.
1.
17
Figure 7(b)
2.
Natural sampling:
18
Figure 8
3.
Figure 9
Note that due to the flat-top pulses, the spectrum of the sampled signal is distorted.
The narrower the pulse width, the less distortion.
The original signal may be obtained by using a low-pass filter with a characteristic
which inverts the distortion.
Quantization:
In quantization the levels are assigned a binary codeword. All sample values falling
between two quantization levels are considered to be located at the centre of the
quantization interval. In this manner the quantization process introduces a certain
amount of error or distortion into the signal samples. This error known as quantization
noise is minimized by establishing a large number of small quantization intervals. Of
course, as the number of quantization intervals increase, so must the number or bits
increase to uniquely identify the quantization intervals. For example, if an analogue
voltage level is to be converted to a digital system with 8 discrete levels or
quantization steps three bits are required. In the ITU-T version there are 256
Scientech Technologies Pvt. Ltd.
19
quantization steps, 128 positive and 128 negative, requiring 8 bits. A positive level is
represented by having bit 8 (MSB) at 0 and for a negative level the MSB is 1.
This is the process of setting the sample amplitude, which can be continuously
variable to a discrete value. Look at Uniform Quantization first, where the discrete
values are evenly spaced.
Uniform Quantization
We assume that the amplitude of the signal m(t) is confined to the range (-mp, +mp ).
This range (2mp) is divided into L levels, each of step size , given by
= 2 mp / L
Output
-m p
+m p
In p u t
Figure 10
The conventional, practical digital-to-analog converter (DAC) does not output a
sequence of impulses (such that, if ideally low-pass filtered, result in the original
signal before sampling) but instead output a sequence of piecewise constant values or
rectangular pulses. This means that there is an inherent effect of the zero-order hold
on the effective frequency response of the DAC resulting in a mild roll-off of gain at
the higher frequencies (a 3.9224 dB loss at the Nyquist frequency). This zero-order
hold effect is a consequence of the hold action of the DAC and is not due to the
sample and hold that might precede a conventional ADC as is often misunderstood.
The DAC can also suffer errors from jitter, noise, slewing, and non-linear mapping of
input value to output voltage.
20
21
The 'hold' facility can be provided by a capacitor, when the switch connects the
capacitor to PAM output it charges to the instantaneous value.
A buffered sample and hold circuit consists of unit gain buffer preceding and
succeeding the charging capacitor. The high input impedance of the preceding buffer
prevents the loading of the message source and also ensures that the capacitor charges
by a constant rate irrespective of the source impedance see figure 12(a).
22
23
Aperture time:
The aperture time is defined as the delay time between the beginnings of the hold
command to the time the capacitor voltage ceases to follow the information signal.
Hence the hold value is different from the true sample value. The aperture time cannot
be reducing to zero because on application of finite time taken by a switch to close &
open on application of the hold signal. Therefore a small value of aperture time is
sought after.
Acquisition Time:
In sample mode, it takes finite time for the capacitor to charge to the information
signal value depending on the RC time constant. This is called as the acquisition time.
The acquisition time is dependent on the current flowing from the input buffer
through switch and hence on RC time constant. The maximum acquisition time occurs
when the capacitor voltage has to change by the full amplitude of the information
signal.
24
3.
Droop Rate:
As it has been discussed earlier, the presence of leakage current through capacitor
dielectric to +ve input of succeeding buffer causes charge loss of capacitor. Hence the
voltage level at the output falls with in time. This rate of change of voltage with
respect to time dv/dt is known as droop rate. Over value of droop rate is desirable as
the circuit should be able to maintain the sample at a relatively constant level until the
next sample.
4.
Feed Through:
At high frequencies, the stray capacitance within the switch causes some of the input
signal to appear at the output during the hold state (switch open). The fraction of input
signal appearing at the output of sample and hold circuit is called feed through.
The sample and hold feature provides both problem and benefit will be seen
afterwards.
Each binary word defines a particular narrow range of amplitude level. The sampled
value is then approximated to the nearest amplitude level. The sample is then assigned
a code corresponding to the amplitude level, which is then transmitted.
This process is called as Quantization & it is generally carried out by the A/D
converter.
25
Quantization noise :
As we have seen the signal is approximated to the nearest level (step). Since the levels
are discrete where as the signal is continuous, the discrepancy creeps in.
The difference between the analog signal value & its approximated one (quantized
one) is random & unpredictable. This is a sort of unwanted, unpredictable, random
signal which accompanies the information signal and is termed as 'Quantization
noise'.
Quantization noise can be reduced by increasing the number of levels, hence reducing
the approximation. But it can never be eliminated. Increasing the number of levels to
reduce quantization noise has the effect of increasing the number of bits. But nothing
comes without price. Increasing the number of bits to represent a sample increases the
system's bandwidth requirement.
b.
26
sample. The encoding method described above is called as uniform encoding i.e. the
quantization levels are uniform for all the amplitude range. But this method of
encoding has disadvantages of its own. The quantization noise plays havoc with the
low level signals because the % approximation compared to the signal amplitude is
very high. This causes a great amount of distortion at the receiver for low level
signals. Also the quieter part of music or speech could become severely distorted &
would make them unpleasant to listen.
To overcome this problem, a non-uniform encoding scheme is used. Here the
quantization levels are clear together for low level than they are for the high levels.
This has an effect of compression on the extreme ends of the signal. The input/output
characteristics for compression signal passed through a comparator network 'prior to
compression (See figure 16). This process is called compression.
27
2.
3.
4.
28
Figure 17
As a result of this, the PAM signals are vulnerable to noise & dispersion of the pulse.
The channel introduces noise on the signal from various sources. Also the receiver is
not noise free.
The pulses also suffer attenuation & dispersion as they pass through the channel. The
primary line constants (L, C, G, & R) limit the velocity at which a particular
frequency can travel. The result is different frequency travel at different velocities in
the medium. Therefore some frequency component of the square wave arrives later as
compared to the other. This causes widening of the pulse width. The phenomenon is
called 'dispersion. The combined effect of attenuation, dispersion & noise is so large
that the pulse is impaired & introduced at the receiver as shown in figure 18.
29
30
31
Pulse Amplitude Modulated wave with large time Intervals between samples
Figure 20
Benefits of TDM :
1.
2.
3.
TDM is all about cost: fewer wires and simpler receivers are used to transmit
data from multiple sources to multiple destinations.
TDM also uses less bandwidth than Frequency-Division Multiplexing (FDM)
signals, unless the bit rate is increased, which will subsequently increase the
necessary bandwidth of the transmission.
An asset of TDM is its flexibility. The scheme allows for variation in the
number of signals being sent along the line, and constantly adjusts the time
intervals to make optimum use of the available bandwidth. The Internet is a
classic example of a communications network in which the volume of traffic can
change drastically from hour to hour.
32
33
Figure 22
The flip-flop circuits when used in the cascaded manner is called a shift register, since
each clock pulse applied to the flip-flops causes the contents of each flip-flop to be
shifted to the right. The feedback connections provide the input to the left-most flipflop. With N binary stages, the largest number of different patterns the shift register
can have is 2N. However, the all-binary-zero state is not allowed because it would
cause all remaining states of the shift register and its outputs to be binary zero. The
all-binary-ones state does not cause a similar problem of repeated binary ones
provided the number of flip-flops input to the module 2 adder is even. The period of
the PN sequence is therefore 2N-1, but IS-95 introduces an extra binary zero to
achieve a period of 2N, where N equals 15.
Starting with the register in state 001 as shown, the next 7 states are 100, 010, 101,
110, 111, 011, and then 001 again and the states continue to repeat. The output taken
from the right-most flip-flop is 1001011 and then repeats. With the three stage shift
register shown, the period is 2 3-1 or 7. The PN sequence in general has 2N/2 binary
ones and [2N/2]-1 binary zeros. As an example, note that the PN sequence 1001011 of
period 2 3-1 contains 4 binary ones and 3 binary zeros. Furthermore, the numbers of
times the binary ones and zeros repeat in groups or runs also appear in the same
proportion they would if the PN sequence were actually generated by a coin tossing
experiment. The flip-flops which should be tapped-off and fed into the module 2
adder are determined by an advanced algebra which has identified certain binary
polynomials called primitive irreducible or unfactorable polynomials. Such
polynomials are used to specify the feedback taps. For example, IS-95 specifies the
in-phase PN generator shall be built based on the characteristic polynomial
PI(x) = x15 + x13 + x9 + x8 + x7 + x5 + 1
Now visualize a 15 stage shift register with the right-most stage numbered zero and
the successive stages to the left numbered 1, 2, 3 etc., until the left-most stage is
numbered 14. Then the exponents less than 15 in Eq. (1) tell us that stages 0, 5, 7, 8,
9, and 13 should be tapped and summed in a module 2 adder. The output of the adder
34
is then input to the left-most stage. The shift register PN sequence generator is shown
below.
Figure 23
PN Sequences also referred to as PN Codes sequences can be generated with a n-stage
Linear Shift Register where:
1.
2.
A seed pattern (other than an all-zeros state) is continuously shifted through the
Linear Shift Register, triggered by a clock.
Figure 24
35
The output of the Modulo 2 adder is used to drive the input of the shift register.
Let us conduct the following experiment and draw some useful conclusions from its
results:
1.
2.
The resulting States of the Shift Register for various clocks are:
Clock
Binary codes
001
100
110
111
011
101
010
001
36
The output sequence 1 0 0 1 1 1 0 . (a) Repeats itself after 7 shifts and is referred to
as a PN Sequence or PN Code.
Figure 25
Bit 0: This bit is reserved for the synchronization of information generated by the
Pseudo random sync code generator block more about its operation in the later
section. When the Pseudo Random Sync Code is switched 'Off' a '0' is transmitted.
Bit 1 to 7: These carry a 7 bit data word corresponding to the last sample taken from
the analog channel CH 0. Remember that the trainer transmits the lowest significant
bit (LSB) first. This time interval during which the coded information regarding the
analog information is transmitted is called the time slot. Since the present time slot
corresponds to channel 0 it is known as time slot 0.
Bit 8 to 14: This time slot termed time slot 1 contains the 7 bit word corresponding to
the last sample taken of analog channel1. As with channel 0 the least significant bit is
transmitted first. The receiver requires two signals for its correct operation & reliable
communication, namely.
a. Receiver clock operating at the same frequency as that of the ST2103 clock.
b. Synchronization signal, which allows the receiver to synchronizes its
clock/operation with the transmitters clock operation. All these requirements can
be achieved by transmitting two essential information signals :
I. A Transmit clock signal.
II. A Frame synchronization signal.
The simplest method is to transmit the synchronization information & the clock over a
separate transmission link. This results in a simplest receiver. It is used in data
communication LAN (Local Area Network) & in telemetry systems. However it is a
waste of media & is not economical for long distance communications.
37
The ST2103 provides these two signals at TX. Clock output (TP3) & [Link] output
(TP4). In this mode the Pseudo random sync code generator & detector (on ST2104)
are switched 'Off'.
The second technique is to transmit the synchronization code along with transmitted
data to be sufficiently different from the information samples.
The ST2103 involves the use of a pseudo-random sync code generator. These codes
are bit streams of '0's & '1's whose occurrence is detected by some rules. The Pseudo Random Sync Code gets its name from the fact that the occurrence of '0's & '1 's in the
stream is random for a portion of sequence i.e. there is equal probability of occurrence
of '0' and '1 '. This portion of sequence is 15 bit long on ST2103.
On the receiver the pseudo-random sync code detector recognizes the Pseudo random
code & use it to identify, which incoming data bit is associated with which transmitter
time slot The advantage of this technique is that if the synchronization is temporarily
lost, due to noise corruption, it can be re-established as the signal clears. Hence there
is minimal loss of transmitted information. Also this technique also reduces the
separate link required for the synchronization signal of transmission.
Mode 1 : Mode 1 is TDM system of three transmission links between transmitter &
receiver. They are information, TX clock & [Link] (synchronization) signal links.
The Pseudo random sync code generator & Detector are switched 'Off' in this case.
Mode 2 : Mode 2 is TDM system of two transmission links between transmitter &
receiver. These are information & TX clock signal links. The synchronization is
established by sync codes transmitted along with the data stream. No need to say that
the pseudo random sync generator & detector are switched On.
Mode 3 : Mode 3 is TDM system of one link between transmitter & receiver, namely
the link carrying information. Synchronization is again established by the sync codes.
The clock signal is regenerated by the phase locked loop (PLL) circuit at the receiver
from the transition of the information data bits.
38
A/D Conversion
The PCM Transmitter samples the analog input, time division multiplex and many
such channels, quantizes it & code it by analog to digital conversion. As it is known,
the binary number system consists of binary digits '0' and '1'. The group of n bits is
called as word and is used to distinguish one code from the other. The range of
decimal numbers represented by such n bits code is equal to 2n (including 0) e.g. If we
take an 8 bit word, the number or different codes possible is equal to 28 = 256 i.e. we
have 0 to 255 code levels available.
39
1) One major problem associated with quantization is due to the discrete nature of
binary numbers which are used to represent continuously variable analog
waveform, It is not possible to represent all the analog values (which are infinite
in number) by limited binary words e.g. if in the figure 27, the analog value lies in
between the two voltages represented by 0011 & 0100 binary words, what will
happen?
Figure 27
In such cases the system allocates a binary number closest to the sample value. This
leads to distortion of the information signal & the approximation is random for
different voltage levels. Hence it is known as quantization noise. Quantization noise
can be reduced by increasing the number of bits used to represent a sample. But it can
never be eliminated. Increasing the number of bits in a word has an effect of
increasing the number of quantization levels.
2) The second problem is associated with the finite time taken by the A/D Converter
to complete the translation from analog to binary code. An A/D Converter
requires that the sample value should remain unchanged till the conversion is
complete, but usually the duration of the sample pulse is much smaller than the
conversion time. This problem can be overcome by using a sample and hold
circuit prior to A/D input. The sample and hold circuit holds the sample value for
the A/D Conversion time. The quantization & Coding process is carried by the
A/D Converter. On ST2103 the A/D converter used is AD670. It is an 8 bit A/D
converter. The A/D conversions are controlled by R/W, CS, & CE pins. The R/W
pin directs the converter to read or start a conversion. The CE & CS pins are tied
to logic 0. The Status pin goes High indicating that a conversion is in process. At
the end of the conversion the Status pin goes Low. On ST2103 the R/W pin is
named as SC (TP7) and pin after inversion is named as EC (TP8). This EC is used
to latch the valid data into D-type Flip-Flops (see circuit description in operating
manual). Only 7 most significant bits out of 8 data outputs are used on ST2103.
The LSB (D0) is ignored.
40
D/A Conversion
A digital-to-analog converter, or simply DAC, is a semiconductor device that is
used to convert a digital code into an analog signal. Digital-to-analog conversion is
the primary means by which digital equipment such as computer-based systems are
able to translate digital data into real-world signals that are more understandable to or
useable by humans, such as music, speech, pictures, video, and the like. It also allows
digital control of machines, equipment, household appliances, and the like.
A typical digital-to-analog converter outputs an analog signal, which is usually
voltage or current that is proportional to the value of the digital code provided to its
inputs. Most DAC's have several digital input pins to receive all the bits of its input
digital code in parallel (at the same time). Some DAC's, however, are designed to
receive the input digital data in serial form (one bit at a time), so these only have a
single digital input pin.
A simple DAC may be implemented using an op-amp circuit known as a summer, so
named because its output voltage is the sum of its input voltages. Each of its inputs
uses a resistor of different binary weight, such that if R0=R, then R1=R/2, R2=R/4,
R3=R/8,.., RN-1=R/(2N-1). The output of a summer circuit with N bits is:
Vo = -VR (Rf / R) (SN-12N-1 + SN-22 N-2+...+S020)
Where VR is the voltage to which the bit is connected when the digital input is '1'. A
digital input is '0' if the bit is connected to 0V (ground). A 4-bit summer circuit is
shown in Figure 28.
41
One problem with this circuit is the wide range of resistor values needed to build a
DAC with a high number of digital inputs. Putting thin-film resistors that come in a
wide range of values (e.g., from a few ks to several Ms) on a single semiconductor
chip can be very difficult, especially if high accuracy and stability are required.
A better-designed and more commonly-used circuit for digital-to-analog conversion is
known as the R-2R ladder DAC, a 4-bit version of which is shown in Fig. 29. It
consists of a network of resistors with only two values, R and 2R. The input SN to bit
N is '1' if it is connected to a voltage VR and '0' if it is grounded. Thevenin's Theorem
may be applied to prove that the output Vo of an R-2R ladder DAC with N bits is:
Vo = VR/2 N (SN-12N-1 + SN-22 N-2+...+S02 0).
Thus, the output of the R-2R ladder in Figure 2 is Vo = VR/24 (S323+S222+S121+S020)
or Vo = VR (S3 / 2 + S2 / 4 + S1 / 8 + S0 / 16) . In effect, contribution of each bit to the
analog output is proportional to its binary weight.
42
b.
Multiplexing :
The information once sampled & coded can be multiplexed in time domain, i.e.
the coded information from different sources can be sent, one after another, if it
can be re-routed to the corresponding channels at the receiver.
The information is coded in binary form, the source of information / sample,
becomes unimportant. Therefore many different sources such as telephone,
facsimile, telegraphy and video cap are transmitted over same channel &
circuitry.
c.
d.
e.
Power requirement :
To transmit the digital data over the same channel requires less signal power
than that would be required for same performance of the receiver for analog
systems.
43
b.
Complexity :
The digital transmitter & receivers is the complex due to the requirement of
highly reliable timing information. This adds to complexity as well as to the cost
of the communications system. With the advent of new technology, the digital
circuits / IC's are becoming more and cheaper still prices are slightly at the
higher side. But the advantage offered by the digital techniques far over weighs
this consideration.
44
Digital Transmission
There are two methods for sending digital data over a distance, namely
a.
Parallel transmission
b.
Serial transmission
2.
The signaling rate or modulation rate is defined as the maximum rate at which the
signal is switched between signaling rate (or number of symbols transmitted per
second).
The other way of defining modulation rate is that it is the reciprocal of the shortest
time for which the signal remains in any state. The modulation rate is measured in
Baud which is equal to one unit signal element per second. See figure 30.
Figure 30
Scientech Technologies Pvt. Ltd.
45
46
The ST2103's A/D Converter outputs data in parallel format which is change into
serial format by the shift register. This is known as parallel to serial conversion.
Figure 32
Reasons for induced errors in digital system:
a.
Impulse Noise :
It can be defined as a high noise level occurring for a very short time, producing
noise spikes superimposed upon the signal waveform. The source of impulse noise
may be lightning strike or sudden heavy current flow through a system or
electromagnetic radiation etc.
b.
As it has been mentioned earlier, the characteristic of the transmission medium causes
attenuation and dispersion, leading to the indecision pulse level recognition. This can
lead to errors.
47
c.
Late Switching :
The late switching by some aging devices or due to loss of synchronization leads to
change in average level & this causes errors to permit us to detect the errors caused by
noise in some cases & to be able to correct them, the method of coding the signal is
adopted.
Coding accomplishes its purpose by deliberate introduction of redundancy in the
message. Their degree of success depends upon the redundancy which they introduce
e.g. Consider that we are transmitting information by means of binary PCM. Then we
transmit a stream of binary digits 0's or 1's. Our main concern is that we do not
confuse a 0 for a 1 or a '1' for a '0'. Suppose that when a '0' is to be transmitted we
transmit 000 & we transmit 111 to represent a digit 1. The other two 0's or 1's add no
information to the message & hence are redundant.
Suppose that the signal to noise ratio on the channel is such that we can be nearly
certain that not more than one error will be made in triplet. Then, if we received 001,
010, or 100, we would actually be certain that the transmitted data was actually 0.
Similarly, if we received 011, 101, or 110 we would be rather certain that the message
was actually 111. Thus the redundancy, deliberately introduced has enabled us to
detect and even correct the error.
But the introduction of redundancy can't guarantee that an error will either be
detectable or correctable. As noise is unpredictable, there is always a finite possibility
that those two errors may occur. In this case we will know that the error has occurred,
but we will be inclined to read a '0' as a '1' & a '1' as a '0'.
Even There is an over possibility, however small, that all the three bits are in error. In
this case, not only we will misread the digits but we would not even suspect that an
error has been made. Thus we conclude that while coding allows us a great deal of
detection & correction it generally cannot detect or correct all errors. Detection of
errors allows the system to request re-transmission of data. But it does not really solve
the problem. However it does offer the system ability to record and evaluate system
error rate.
A better solution would be to introduce a method of error detection and correction.
The correction is done automatically by receiver. The degree of success depends upon
the redundancy which they introduce.
It is clear that if the redundant message is to be transmitted at the same rate as the
original binary signal, we shall have to transmit more no of bits in time TS otherwise
allocated to a single bit. And it is an established fact that the increase in bit rate may
increase the error rate. Hence the required increased bit rate will undo some of the
advantage that will accrue from redundancy coding. However coding yields a very
worthwhile net advantage. The price to be paid is increased hardware complexity both
for transmitter & receiver where encoding & decoding is affected respectively.
Many different types of codes have been developed and are in use. The commonly
used are as:
48
Parity Coding :
It is the simplest method of error coding. Parity is a method of encoding such that the
number of 1's in a codeword is either even or odd Signal parity is established as
follows. Each word is examined to determine whether it contains an odd or even
number of '1' bits.
If even parity is to be established (known as Even parity), a '1' bit is added to each
word containing odd '1' and a '0' bit is added to each word containing even '1 'so the
result is that all the code words contain an even number of 1 bits after encoding.
Similarly, the parity coding can ensure that the total number of '1's in the encoded
word is odd. In such number of '1's in the encoded word is odd. In such cases it is
called as odd parity.
Continuing with the example of even parity, after transmission, each code word is
examined to see if it contains an even number of 1 bits. If it does not, the presence of
an error is indicated. If it does, the parity bit remains and the data is passed to the
user.
Note that single bit parity code can detect single errors only and it cannot provide
error correction because there is no way of knowing which bit is in error.
It is for this reason that parity coding is normally only used on transmission systems
where the probability of error occurring is deemed to be low.
b)
Hamming Coding :
Hamming coding, decode each word at the transmitter into a new code by stuffing the
word with extra redundant bits. As the name suggests, the redundant bits do not
convey information but also provides a method of allowing the receiver to decide
when an error has occurred & which bit is in error since the system is binary, the bit
in error is easily corrected.
Three bit hamming code provides single bit error detection and correction.
The ST2103 & ST2104 involves the use of 7 bit word. Therefore only four bits are
used for transmitting data if hamming code is selected. The format becomes.
D6
D5
D4
D3
C2
C1
C0
49
D6, D5, D4
Parity Bit - C2
Group 2
D6, D5, D3
Parity Bit - C1
Group 3
D6, D4, D3
Parity Bit C0
The Groups & Parity bit forms an even parity check group. If an error occurs in any of
the digits, the parity is lost & can be detected at receiver e.g. Let us encode binary
value D6, D5, D4, D3 of '1101'
Group 1
Group 2
Group 3
D6
D5
D4
C2
D6
D5
D3
C1
D6
D4
D3
C0
D5
D4
D3
C2
C1
C0
At the receiver, the four digits representing a particular quantized value are taken in as
three groups. The Error Detection/ Correction Logic carries out even parity checks on
the three groups.
Group 1
D6
D5
D4
C2
Group 2
D6
D5
D3
C1
Group 3
D6
D4
D3
C0
If none of them fails, then no error has occurred in transmission & all bit values are
valid. Suppose, a case, where the following parity check was carried out & the listed
groups failed.
Group 1
Group 2
Group 3
D6
D5
D4
C2
D6
D5
D3
C1
D6
D4
D3
C0
Failed
Failed
Passed
If we suppose only a signal bit corruption, the passing of Group 3 means that all D6,
D4, D3 & C0 are valid.
Scientech Technologies Pvt. Ltd.
50
In the above two groups the only common element except D6, is D5. As D6 is
received correctly clear from Group 3 the only bit which can be in error is Bit 5 i.e.
D5. Since the corrupted bit has been detected, the receiver can now make changes in
D5 to convert it to other possible value i.e. '0'. Thus the data word is corrected to
0001010. The receiver now discards the redundant check bits (C2, C1 & C0) and
passes the valid data (0001) to the input of D/a converter table given below gives the
location of possible single bit errors.
Parity Check Results on ST2104
Group-l
Group-2
Group-3
Location of
D6 D5 D4 C2
D6 D5 D3 C1
D6 D3 C0
Error
PASS
PASS
PASS
No Error
PASS
PASS
FAIL
C0
PASS
PASS
PASS
C1
PASS
PASS
FAIL
D3
PASS
PASS
PASS
C2
PASS
PASS
FAIL
D4
PASS
PASS
PASS
D5
PASS
PASS
FAIL
D6
2.
51
Experiment 1
Objective: Study of Error Check Codes
Equipment required:
1.
2.
3.
Connection cords
Procedure:
A.
: FAST position
B.
1.
: 10 V peak -peak.
: ON position
: Off position.
: FAST position
: ON position
: Off position.
b)
This ensures that the two channels contain the same information.
2.
3.
b)
Make the following connections between ST2103 & ST2104 see Figure.1.1.
a)
b)
52
4.
Turn On the power supply and oscilloscope. Ensure that the frequency of the
VCO in the receiver clock regeneration circuit has been correctly adjusted
5.
Connect
6.
a)
b)
c)
Vary DC l and note that the data is transferred correctly between the two
trainers. You can verify that the data in the A/D converter Block of
ST2103 is always the same as the data in D/A converter Block of ST2104
also the output voltage of TP33 of ST2104 should be same as the input
voltage at TP10 of ST2103 for all DC input levels.
Select even parity with error check code selector switches A & B at A=0 & B=1
position, on both the trainers. Set up various codes from A/D Converter's output
LEDs some containing even no of l's & some odd. Check the error check code
generator output of ST2103. Data latch output (TP16 to 22) on ST2104 & D / A
Converter input (TP23 to 29) on ST2104. Notice the number of '1's in the
transmitted data streams. Is it ever Odd?
Note: ST2103 uses the least significant bit (LSB) of the 7 bit word to transmit
the parity bit. Its value is changed to achieve the correct parity for each word.
7.
Compare the output of the data latch led (TP16 to 22) with input to the D/A
Converter LED in each case. Once the error detection logic has decided whether
an error has occurred, it must pass the received code to the D/A converter. But
since D0 bit was used as parity bit, it is always forced to a '0'. Notice that the
quantized values on output of A/D Converter is not necessary but same to be
applied to D/ A Converter receiver end due to the action of error detection logic.
8.
9.
Carry out the same experiment with 1 KHz sine wave applied at CH 0 & CH1
Input of ST2103. Adjust the 1 KHz amplitude level fully clock wise.
Conclusion:
If the frequency of the VCO in the receiver clock regeneration circuit has been
correctly adjusted in that case the data in A/D converter Block of ST2103 is always
same as data in D/A converter Block of ST2104, also the output voltage of TP33 of
ST2104 should be same as the input voltage at TP10 of ST2103 for all DC input
levels.
53
Questions:
1.
2.
3.
4.
5.
54
Figure 1.1
Scientech Technologies Pvt. Ltd.
55
Experiment 2
Objective: Study of Analog to Digital Conversion
Equipment required:
1.
2.
3.
Connection cords
Connection Diagram:
Figure 2.1
56
Figure 2.2
Procedure:
A.
: FAST position
1.
: 10 V peak -peak.
: OFF position
: OFF position.
DC l output to CH 0 input
b.
DC 2 output to CH 1 input
57
2.
Turn On the power. With the help of digital voltmeter / oscilloscope, adjust
the DC l amplitude control until the DC 1 output measures 0V: The accuracy
should be within +/-20mV. Turn the DC 2 amplitude control, fully counter
clockwise.
3.
Observe the output on the A/D converter block LEDs (D0 to D6). The LEDs
represent the state of the binary PCM word allocated to the PAM sample being
processed.
An illuminated LED represent a '1' state, while non illuminated LED indicates a
'0' state. D6 is the MSB & D0 is the LSB. The LED output looks as follows.
D6
D5
D4
D3
D2
D1
D0
Adjust the DC1 amplitude control clockwise to increase the amplitude &
anticlockwise to decrease it. Try varying the DC input from + 5V to - 5V in
steps of 1V. Take care that the input value is within the specified range of +/20mV. Observe that the output for +5V is as follows :
D6
D5
D4
D3
D2
D1
D0
Where for the negative values it is less than 1000000 for -5V the output is as
follows
D6
D5
D4
D3
D2
D1
D0
Turn the DC 1 control fully anti-clockwise and repeat the above procedure by
varying DC 2 control. Check that the digital code for the set voltage value is
identical to that of the DC 1 setting.
Once again take the precaution of maintaining the set input within +/- 20mV
range of the specified voltage.
6.
Switch 'Off' the trainer. Disconnect the DC 1 & DC 2 supply from CH 0 & CH
1. Connect ~1 KHz signal to CH 0 & 2 KHz signal to CH 1 input as shown in
figure 2.2.
7.
58
8.
Now connect the oscilloscope channel 1 to CH 1 sample (TP6) sketch the three
waveforms with utmost importance to the relationship between the three
waveforms.
9.
1.
2.
3.
4.
5.
6.
7.
What is the difference between direct ADC and integrating type ADC?
8.
59
Experiment 3
Objective : Study of Control Signals and their Timings
Equipment required:
1.
2.
3.
Connection cords
Connection Diagram:
60
Procedure:
A.
: FAST position
1.
2.
: 10 V peak -peak.
: OFF position
: OFF position.
DC 1
TO
CH 0
II.
DC 2
TO
CH 1
3.
The LED outputs of A/D Converter & shift register are a combination of the two
input voltages. Also since the trainer is working in fast mode, it is impossible to
detect the code.
4.
As stated earlier, the two channels are sampled at different time. Approximately,
after 10 seconds, when the system has settled down to slow mode, observe the
LEDs of A/D converter Block. Notice that a particular combination of LEDs is
lit in the A/D converter Block for approximately 7 seconds.
These LEDs represent the latched output from the A/D Converter for every
sample of CH 0 & CH 1 Channels. Note the output of the A/D Converter,
Note: You may find the A/D Converter's output may not be identical every time
you switch the circuit from fast to slow mode for the same DC Control setting.
This is due to the slight change in voltage at Sample / Hold circuit at the time of
switching. However the change in code will only be 1 Bit.
61
5.
The parallel data from the A/D Converter is then loaded in the shift register
which converts in serial output. Connect the oscilloscope at following points :
a)
b)
c)
You may have to adjust the oscilloscope trigger levels to obtain a stable display.
6.
Observe the interdependence of S/L, TX clock output and the shift register
outputs as shown by their respective LEDs. Record the waveforms. The timing
diagram for the process is shown in figure 3.2.
Conclusion:
As the controlling signals are properly synchronized the output of the two input
waveforms are also synchronized.
Questions:
1.
2.
3.
4.
5.
62
63
Experiment 4
Objective: Study of Time Division Multiplexing
Equipment required:
1.
2.
3.
Connection cords
Connection Diagram:
Procedure:
A.
: FAST position
: 10 V peak -peak.
: OFF position
: OFF position.
64
1.
2.
Turn ON the power supply and oscilloscope. Check that the PAM output of 1
KHz sine wave is available at TP15 of the ST2103.
3.
4.
Turn 'Off' the power supply. Now connect also the 2 KHz supply to CH 1.
5.
6.
Observe & explain the timing relation between the signals at TP10, 5, 6, 12&15.
Conclusion:
By observing the two signals in a multiplexed form provides the actual waveforms
which are time multiplexed.
Questions:
1.
2.
3.
4.
5.
65
Experiment 5
Objective: Study of Pseudo Random Sync Code Generator
Equipment required:
1.
2.
3.
Connection cords
Connection diagram:
Figure 5.1
66
Figure 5.2
Procedure:
A.
: FAST position
B.
1.
: 10 V peak -peak.
: ON position
: Off position.
: FAST position
: OFF position
: Off position.
To
CH 0 Input
2 KHz
To
CH 1 Input
67
2.
ST2104
3.
4.
Vary the amplitude of the 1 KHz & 2 KHz sine wave signal & note that the
transmitted data changes.
5.
Also observe the two input signals TP10 & TP12 of ST2103 with the received
sine wave samples TP32 & 35 of ST2104 and at the respective low pass filter
outputs CH 0 & CH 1 (TP33 & 36) of ST2104.
6.
Vary the amplitude of ~1 KHz & ~2 KHz signals at the ST2103. Observe how
the output at receiver changes. Set a value of 4Vpp for channel 0. Note what the
output voltage of the received signal is.
7.
Turn Off the power. Rearrange the connections between ST2103 & ST2104
as follows as shown in figure 5.2
ST2103
8.
ST2104
RX clock input
PCM output
PCM input
Connect
Channel 1 of the oscilloscope to TP12 on ST2103.
Channel 2 of the oscilloscope to TP36 on ST2104.
9.
Turn On the power and oscilloscope. Notice the waveforms & confirm that
they are different.
10.
Vary the setting of ~2 KHz signal & observe the waveform at TP36. Explain
the reason behind the mismatch.
11.
Turn 'Off' the power. Connect [Link] output from ST2103 to RX sync input on
ST2104.
Turn On the power. Now notice the two waveforms again. Do you notice any
change? Why it has happened?
12.
Now you must have observed the importance of synchronization. But now the
synchronization has been established because of the separate link between
ST2103 & ST2104.
13.
Turn 'Off' the power Remove the link between [Link] & [Link]. Turn On
the trainer. Observe the two mismatched waveforms. Now turn On the pseudo
68
random sync code generator on ST2103. Do you notice any change in the
observed waveform at TP36 on ST2104.
14.
Turn the pseudo random sync code detector on ST2104 ON. Notice the changes
observed waveform at TP36 of ST2104.
15.
To be able to perceive the pattern of the sync code generated, connect the
oscilloscope probes to TP4 ([Link] output & TP42) (Pseudo random sync code
generator output).
Notice the sync coded output for a high level occurrence at the TX to output. If
necessary switch the two trainers to slow mode.
16.
Notice the sync Bit counter LED, in pseudo random sync code detector Block
of ST2104 is On in FAST Mode. This is an indication that the receiver has
identified the transmitted bit time 0 & is using it for all its timing operations.
This also confirms that the two are in 'Frame Synchronization'.
Observe the [Link] (TP4) output signal on ST2103 & [Link] (TP48) output
signal on ST2104. They should be identical when frame synchronization has
been achieved.
17.
Switch 'Off' the pseudo random sync code generator. Notice that the sync bit
counter LED goes 'Off' indicating that the synchronization has been lost. Notice
at the same time that the sync error counter led goes On. Note the LED
indication may be faint. There fore observe carefully. This goes to show that
synchronization has been lost.
Conclusion:
With the help of pseudo random sync code generator the signals transmitted are
received in secure fashion at the output port.
Questions:
1.
2.
3.
4.
5.
69
Experiment 6
Objective : Study of Three Modes of Transmission
Equipment required:
1.
2.
3.
Connection cords
Procedure:
A.
: FAST position
B.
1.
: 10 V peak -peak.
: ON position
: Off position.
: FAST position
: OFF position
: Off position.
2.
ST2104
[Link] output
RX sync input
PCM output
Turn On the power supply and oscilloscope. Observe that the 1 KHz sine
70
wave input appears at TP10 (CH 0 Input) & 2 KHz sine wave input appears at
TP12 (CH 1 Input).
3.
Connect
Channel 1 of oscilloscope to CH 0 Input (TP10)
Channel 2 of oscilloscope to PCM output (TP44)
Trigger the oscilloscope with CH 0 input. Observe the two waveforms. Vary the
ST2103's ~1 KHZ and ~2 KHz controls (which vary the amplitude of the two
sine waves) and note how the transmitter data changes.
4.
5.
6.
Turn On the power. Vary the DC.1 control. Observe on the oscilloscope at
TP10. The amplitude should vary between -5 to + 5V. Variation of the input
voltage from -5V to +5V will cause the output of A/D Converter to vary from
00 Hex to 7F Hex. The A/D converter 7 Bit word output can be monitored on
LEDs provided in the A/D converter block.
Observe that the D/A Converter LED contain the same data for a particular set
of input amplitude. Notice the output waveform at CH 0 (TP33) or CH 1 (TP36)
of ST2104.
7.
71
this instance the pseudo random sync code generator is 'Off', a '0' is transmitted
in this time slot.
BIT 1 to 7: These bits carry the 7 Bit data word of the last sample taken from
the channel o. Notice that the least significant bit (LSB) is transmitted first.
BIT 8 to 14: These bits carry the 7 bit data word of the last sample taken from
channel 1. In this case also the least significant bit is transmitted first.
Observe the PCM output (TP44) with respect to the input signal to output logic
block (TP43) & with TX. Clock signal (TP3).
Figure 6.1
Scientech Technologies Pvt. Ltd.
72
8.
As it has been discussed earlier, for correct operation the receiver needs to be
clocked" at the same rate as the transmitter & it should be able to decide which
time slot is for which information transmit TX clock & [Link] signals on
separate links. TX clock signals clocks the receiver at the same rate where as
the TX. TO signal helps the receiver to identify the time slot 0.
9.
The three wire connections can be reduced to two wires by developing the
ST2103's ability to transmit the synchronization information along the data.
Similarly, the receiver must be able to detect & distinguish these sync bits from
the normal information bits.
This ability is imparted by the Pseudo random sync code generator & detector
present on ST2103 & receiver trainer respectively. The pseudo random sync
code is a sequence of 15 bits generated by the pseudo random sync code
generator.
0 0 0 1 0 0 1 1 0 1 0 1 1 1 1 .............................................................. Repeating.
One bit of this sequence is transmitted in every frame at time slot 0. The
receiver detects it & uses it to decide which time slot is for which frame.
10.
The above mode is termed as 'connecting Mode 2'. The ST2103 / Receiver can
be configured in this mode as shown in figure 6.2.
a. Switch the boards to FAST mode.
b. Remove the link connecting [Link] (TP 4) & RX sync (TP 47).
c. Switch On the pseudo random sync code generator on ST2103.
d. Switch On the pseudo random sync code detector on ST2104.
e. Connect DC 1 to CH 0 & CH 0 to CH 1
11.
Vary DC 1 and note that the LEDs on the A/D converter block on ST2103 &
D.A. converter of ST2104 always carries the same code.
Also observe that the sync bit counter led in the pseudo random sync code
detector block is On. This signifies that the receiver knows the transmitted
time slot & can identify them. We say that the receiver is 'Frame Synchronized'
to the transmitter. Once the transmitter & receiver is frame synchronized, the
[Link] & [Link] signals are identical. You can observe the two waveform at
TP4 of ST2103 & at TP48 of ST2104 respectively.
12.
Switch 'Off' the pseudo random sync code generator. Notice that the A/D
converter block output observed on LEDs is not similar to the D/ A Converter
Block input. We say that the receiver has lost the frame synchronization. The
Receiver indicates this by turning 'Off' the sync bit counter led in pseudo
random sync code detector block.
73
Figure 6.2
74
13.
If you desire to examine the timing of data flow & control signal in detail,
switch the ST2103 & receiver into slow mode.
14.
15.
Configure the ST2103 & receiver as shown in figure 6.3 and ensure the
following statements :
a. Both trainers are switched in FAST Mode.
b. Link between TX clock (TP3) & RX clock (TP46) has been removed.
c. PCM data input (TP1) on ST2104 is connected to the input (TP3) of phase
locked loop circuit on the same trainer.
d. The phase locked loop output (TP8) is connected to the RX clock input
(TP46) on the ST2104.
16.
17.
18.
Observe the ST2104 analog outputs (TP33 & 36). Verify that the two outputs
are identical to that applied at the transmitter's inputs.
75
19.
The trainers have on board error check generator & detector (on ST2103 &
ST2104 respectively). This provides an opportunity to detect & if possible to
correct the erroneous trainer data. The Error check code generator replaces some
least significant bits of the 7 Bit word with some error check bits. The following
error check options are available on board :
1.
'Off' : The error check generator is 'Off' when this mode is selected by switching
the A & B switches in the error check code generator block in ST2103 in A = 0
& B = 0 position.
No error check code is inserted in the 7 Bit word. The word format is
D6
D5
D3
D2
D1
D0
Even Parity: This option is selected by placing A & B switches in the error
check code generator block in ST2103. In A = 0 & B=1 position. The least
significant bit of the 7 bit word is replaced by a single parity bit.
The word format is :
D6
D5
D4
D3
D2
D1
C0
Where C0 is the parity check bit which is chosen such that the total no of '1's in
the 7 bit word are even. If the error check code detector in ST2104 is also
configured in this mode, it can detect the error in the transmitted data, but it
cannot tell which bit is in error. It indicates 'the error by switching On of the
Parity Error LED.
3.
Odd Parity: This option is selected by placing the A & B switches in the error
check generator block in A = l & B = 0 position. The least significant bit of the
7 - Bit word is replaced by a single parity bit.
The word format is.
D6
D5
D4
D3
D2
D1
C0
Where C0 is the parity check bit such that the total no of '1's in the 7 bit word
are odd.
If the error check code detector in ST2104 is also included in this mode, it can
detect the error in the transmitted data, but cannot tell which bit is in error. It
indicates the error by switching On of the parity error LED.
4.
Hamming Code: This option is selected when the A & B switches in the Error
check code generator on ST2103 are placed in A=1 & B=1 position.
In this case the three check bits replace the three least significant bits of the
7 bit word. The word format is :
D6
D5
D4
D3
C2
C1
C0
Where C2, C1 & C0 are the Hamming check bits. If the Error Check Code
Detector in ST2104 is switched into same .mode, it can detect the error & even
Scientech Technologies Pvt. Ltd.
76
connect the erroneous transmitted data bit (only single). It indicates the
erroneous bit by lighting the corresponding LED in hamming code error block.
Illustration of various check codes are given in steps 22nd to 29th:
22.
Connect the ST2104's CH 0 (TP33) & CH 1 output (TP36) to the two channels
of the oscilloscope. Now introduce the switched fault '2' in the trainer system by
switching On the pole 2 of switched faults Block. This fault forces the D6 bit
(MSB) of the transmitted 7 bit word to be always '1' even when there must have
been a '0'. Notice the distortion in the output in the output sine waves at the
ST2104's CH 0 (TP33) & CH 1 (TP36) outputs.
23.
Switch 'Off' the fault. Introduce even parity error check code option on both the
trainers by switching the A & B switches in the corresponding block to A=0 &
B=1 position.
24.
25.
26.
You can carry on the same experiment by selecting the odd parity option. You
will get the same result as the earlier ones. Note switch 'Off' the fault prior to
selecting the Error check code option.
27.
Switch ''Off'' the fault. Select the hamming code option by placing the A & B
switches in the corresponding block to A = 1 & B = 1 position.
28.
29.
You can induce any switched fault /faults in the ST2103 & ST2104 trainer to
investigate the effect of particular faults on the whole system. This also allows
you the opportunity to practice & test your skills in fault detection trouble shooting. The list of various faults that can be induced in the system is given in
this manual.
77
Figure 6.3
Scientech Technologies Pvt. Ltd.
78
Questions:
1.
2.
3.
4.
5.
6.
79
Experiment 7
Objective: Computer Communication using RS232 interface via ST2103 & ST2104
Equipment required:
1.
2.
3.
Connection cords
4.
RS232 cable
There are two channels provided on ST2103 & ST2104. It utilizes these two channels
to communicate between two computers, thus forming a full duplex link. It will need
the following :
System:
Microsoft Windows 95, 98, or above
Software:
Supplied with the trainer in CD
Procedure:
1.
2.
Connect the RS232 cable to the serial port of the computer and the other end to
ST2103 & ST2104 as shown in figure 7.1.
3.
Make the interconnections between ST2103 & ST2104 as shown in the figure
7.1. (Before connecting perform the experiment no.6 in mode 3).
4.
5.
After establishing a connection, select the com port in the "COM Port" window,
and select Baud rate (same on both PCs).
6.
7.
8.
Now type a message in the message window of PC1 and click send, you will
see the message in receiver window of PC2 and in transmit window of PC1.
9.
If you send a message from PC2 you will receive the message in the receiver
window of PC1 and in transmitter window of PC2.
10.
If you disconnect any of the transmitting or receiving wire, you will see that the
data transmission has failed.
11.
You can reduce the baud rate of both PCs and you will observe that the transmit
rate is lower.
80
Figure 7.1
Scientech Technologies Pvt. Ltd.
81
Questions:
1.
2.
3.
4.
5.
82
Experiment 8
Objective: Multi point to multi point communication using RS232 interface via
ST2103 & ST2104
Equipment required:
1.
2.
3.
Connection cords
4.
RS232 cable
There are two channels provided on ST2103 & ST2104. It utilizes these two links to
communicate from two PCs on one end to two PCs on other end. The two PCs
connected to ST2103 will act as transmitter, and those connected to ST2104 will act
as receiver. This will be a one way communication. It will need the following:
System:
Microsoft Windows 95, 98, or above
Software:
Supplied with the trainer in CD.
Procedure:
1.
2.
Connect the RS232 cable to the serial port of the computer and the other end to
ST2103 & ST2104 as shown in figure 8.1.
3.
Make the interconnections between ST2103 & ST2104 as shown in the figure
8.1 (Before connecting perform the experiment no.6 in mode 3).
4.
Install the software provided with the trainer in all the four PCs.
5.
Run the software in all the PCs and select the respective COM ports and the
same baud rate in all the PCs.
6.
7.
Now the data transmitted by PC1 and PC2 will be multiplexed, Pulse code
modulated and transmitted via single wire and then, demodulateddemultiplexed and received by PC 3 and PC4 respectively.
83
Figure 8.1
84
Questions:
1.
2.
3.
4.
5.
85
Experiment 9
Objective: Point to multi point communication using RS232 interface via ST2103 &
ST2104
Equipment required:
1.
2.
3.
Connection cords
4.
RS232 cable
There are two channels provided on ST2103 & ST2104. It utilizes these two links to
communicate from one PC to the two other PC's on the other end. The PC on the
transmitter side will act as master and the PCs on receiver side will act as slaves. This
will also be a one way communication.
System :
Microsoft Windows 95, 98, or above
Software :
Supplied with the trainer in CD
Procedure :
1.
Keep one PC to the left of ST2103 (master) & two PCs to ST2104 (slaves) as
shown in figure 9.1.
2.
Connect the RS232 cable to the serial port of the computer and the other end to
ST2103 & ST2104 as shown in the figure 9.1.
3.
4.
Install the software provided with the trainer in all the three PCs. Run the
software and select the respective COM ports and same BAUD rate in all the
PCs.
5.
6.
Now the data or instructions transmitted by the master will be received by the
two slaves.
86
Figure 9.1
87
Switched Faults
1.
Following faults can be induced in the ST2103 to study their effects on the system &
to practice fault-diagnosis techniques.
Switched Fault 1 :
Switching ON of this fault causes the A/D Converter's D6 Output to be always '0',
irrespective of the applied analog input. The fault occurs before error check code
generator & hence cannot be detected by the receivers error detection correction
logic. Hence the output of the receiver is not always a true representation of the
applied analog input at the transmitter.
Switched Fault 2 :
The switching On of this fault cause D6 bit of the P.C.M. output of the transmitter to
be always '1' irrespective of the connect D6 bit level. This fault is induced after the
error check code generator block & hence can be detected & in case of hamming code
selected, can be corrected also if the same mode is selected on error detection &
correction logic on receiver trainer also. This fault can be used to study the utility of
the error check codes in case of bit corruption in the P.C.M. data along the
transmission path.
Switched Fault 3 :
This fault causes the error check code generator to treat the A/D converter's D5 output
to be always high irrespective of the actual D5 bit in P.C.M. data transmitted. This
fault has no effect when none of the error check code option is selected the receiver
may wrongly decide that the P.C.M. data has a fault.
In case of hamming code, the receiver may try to correct the wrongly diagnosed 'error'
thus distorting the output in this process.
Switched Fault 4 :
This fault affects the pseudo random sync code generator. It causes the generator to
generator a sequence which is not Pseudo Random in Nature. Hence if the receiver is
relying on pseudo random sync code for synchronization as in connecting Modes 2 &
3, the receiver loses frame synchronization. This distorts the receiver's output.
2.
The Following faults can be induced in the ST2104 receiver trainer to study their
effects on the system & to practice fault diagnosis techniques
Switched Fault 1 :
This fault breaks the loop between phase locked loop output & loop filter's input on
ST2104 receiver trainer. Thus induction of this fault cause the malfunctioning of
phase locked loop circuit. Hence the receiver doesn't clock into synchronization in
connecting Mode 3. Remember PLL circuit is used to extract clock information in
connecting Mode 3.
Scientech Technologies Pvt. Ltd.
88
Switched Fault 2 :
This fault affects the functioning of ST2104's pseudo random sync code detector.
When this fault is induced, the receiver cannot detect the transmitted pseudo random
sync code. Hence in connecting Mode 2 & 3 in which the ST2104 depends on sync
code detection for frame synchronization this fault cause the receiver to continuously
try to resynchronize but to do so every time.
Switched Fault 3 :
This fault affects the ST2104's error detection/correction logic when the hamming
option is selected. It causes an error in C1 to be indicated when the received data and
check bits are correct. If the received data actually contains an incorrect bit, the
receiver may decide that the wrong bit is in error, and if that bit is a data bit, try to
correct it. The effect of this fault is detailed in the table below.
Bit Received
Indicated
Bit
In Error
Error
Corrected
None
C1
None
C0
D3
D3
C1
C1
None
C2
D5
D5
D3
D3
D3
D4
D6
D6
D5
D5
D5
D6
D6
D6
Switched Fault 4 :
This fault open circuits the ST2104's channel 1 sample & hold amplifier. This causes
the receiver's channel 1 output CH 1 (TP36) to drift down to 10V supply.
89
2.
3.
Switch On the ST2103's pseudo random sync code generator block and the
ST2104's pseudo random sync code detector block.
4.
Ensure 'that the ST2104's pulse generator delay control is in the fully clockwise
position.
5.
6.
7.
8.
Turn the VCO frequency adjust preset, on ST2104 until a position it is found
where the sync bit counter LED, in the sync code detector block of ST2104 is
On.
9.
Turn the DC 1 preset fully counter clockwise and check that the sync bit counter
LED is still On If the LED switches to 'Off', re trim the VCO frequency adjust
preset until the LED stays on for both extreme positions of the DC 1 preset.
After following this procedure, the receiver clock regeneration circuit should be
able to synchronize on any transmitted data stream, providing that there are at
least occasional rising transitions at PCM data output.
90
Ans: A PAM system can be converted into a PCM system by adding a suitable
analogue-to-digital (A/D) converter at the source and a digital-to-analogue (D/A)
converter at the destination.
2.
3.
Sampling
Quantizing
Coding
What is Quantization?
Ans: In quantization the levels are assigned a binary codeword. All sample values
falling between two quantization levels are considered to be located at the centre of
the quantization interval. In this manner the quantization process introduces a certain
amount of error or distortion into the signal samples.
4.
Ans: The block diagram of Bit step Analog to digital converter is as follows:
91
7.
2.
3.
4.
92
8.
3.
9.
TDM is all about cost: fewer wires and simpler receivers are used to transmit
data from multiple sources to multiple destinations.
TDM also uses less bandwidth than Frequency-Division Multiplexing (FDM)
signals, unless the bit rate is increased, which will subsequently increase the
necessary bandwidth of the transmission.
An asset of TDM is its flexibility. The scheme allows for variation in the
number of signals being sent along the line, and constantly adjusts the time
intervals to make optimum use of the available bandwidth. The Internet is a
classic example of a communications network in which the volume of traffic can
change drastically from hour to hour.
What is Pseudo-random Noise (PN) sequence?
Ans: They can be used to logically isolate users on the same frequency channel. They
can also be used to perform scrambling as well as spreading and dispreading
functions.
11.
Draw the block diagram and explain how PN sequence can be generated?
Figure
The flip-flop circuits when used in the cascaded manner is called a shift register, since
each clock pulse applied to the flip-flops causes the contents of each flip-flop to be
shifted to the right. The feedback connections provide the input to the left-most flipflop. With N binary stages, the largest number of different patterns the shift register
can have is 2N. However, the all-binary-zero state is not allowed because it would
cause all remaining states of the shift register and its outputs to be binary zero. The
all-binary-ones state does not cause a similar problem of repeated binary ones
93
provided the number of flip-flops input to the module 2 adder is even. The period of
the PN sequence is therefore 2N-1, but IS-95 introduces an extra binary zero to
achieve a period of 2N, where N equals 15.
12.
b. Multiplexing :
That information which has been binary coded in digital format can be
easily stored in the computer or memory elements, & information can be
forwarded at the desired time. It is required at the time of channel
congestion. The message can be stored in memory. Once the channel
becomes clear, the message can be forwarded to the called party.
The digital devices today are capable of high grade encryption. The
data can not be correctly interpreted if the receiver has no proper
decoder. Hence the digital communication can be highly secured.
e. Power requirement :
To transmit the digital data over the same channel requires less signal
power than that would be required for same performance of the
receiver for analog systems.
94
How many methods are there to transmit the data from one place to other?
Ans: There are two methods for sending digital data over a distance, namely
a. Parallel transmission
b. Serial transmission
14.
Ans: To convert continuous time signal to discrete time signal, a process is used
called as sampling.
16.
Ans: The Sampling Theorem states that a signal can be exactly reproduced if it is
sampled at a frequency Fs, where Fs is greater than twice the maximum frequency
Fmax in the signal.
Fs > 2 Fmax
17.
Ans: The frequency 2 Fmax is called the Nyquist sampling rate. Half of this value,
Fmax, is sometimes called the Nyquist frequency.
95
18.
Ans: When the sampling rate is lower than or equal to the Nyquist rate, a condition
defined as under sampling, it is impossible to rebuild the original signal according to
the sampling theorem.
20.
Ans: In electronics, a sample and hold circuit is used to interface real-world signals,
by changing analogue signals to a subsequent system. The purpose of this circuit is to
hold the analogue value steady for a short time while the converter or other following
system performs some operation that takes a little time.
Sampling mode:
In this mode, the switch is in the closed position and the capacitor charges to the
instantaneous input voltage.
Hold mode:
In this mode, the switch is in the open position. The capacitor is now disconnected
from the input. As there is no path for the capacitor to discharge, it will hold the
voltage on it just before opening the switch. The capacitor will hold this voltage till
the next sampling instant.
22.
Ans: Aliasing is removed by simply filtering out all the high frequency components
before sampling.
96
23.
Ans: Filter is a network designed to pass signals having frequencies within certain
bands (called pass bands) with little attenuation, but greatly attenuates signals within
other bands (called attenuation bands or stop bands).
A filter network containing no source of power is termed passive, and one containing
one or more power sources is known as an active filter network.
97
Warranty
1.
We guarantee this product against all manufacturing defects for 24 months from
the date of sale by us or through our dealers. Consumables like dry cell etc. are
not covered under warranty.
2.
The product is not operated as per the instruction given in the Learning
Material
b)
The agreed payment terms and other conditions of sale are not followed.
c)
d)
3.
4.
The repair work will be carried out, provided the product is dispatched securely
packed and insured. The transportation charges shall be borne by the customer.
List of Accessories
1.
2.
3.
4.
5.
6.
7.
98