Digicomm 5
Digicomm 5
Digicomm 5
Date Performed:
VALERIO, ADRIAN JASPER S. ACTIVITY NO. 1 October 2, 2018
SOURCE CODING Part 5
ECE511FL Date Submitted:
4:30 – 7:30 T
Differential PCM October 9, 2018
I. Problem Set
Algorithm:
Initialize the threshold voltage VT ( VT=0 )
Obtain a sample xs of the difference of the input signal x(t) and V T
( xs=x(t)-VT ) at regular interval Ts (Ts=1/Fs).
For each sample taken,
- quantize the sample using a reference voltage V LSB
( Vq=round(xs/VLSB)VLSB
- encode the quantized value (referred to V LSB) of the sample as a
4-bit folded binary code and transmit the 4-bit code with the sign bit
transmitted first
- update the threshold voltage by adding the quantized value of the
sample ( VT=VT+Vq)
Algorithm:
Initialize the reconstructed voltage to zero ( y(t)=0).
Samples the input bit stream at regular interval Ts' (Ts'=1/4Fs') and decodes
each 4-bit folded binary code.
For each 4-bit folded binary code received, the reconstructed signal is
updated by adding the equivalent voltage of the 4-bit code.
( y(t)=y(t)+ (4-bit code decimal equivalent)VLSB' )
(a) If the analog input to the transmitter is x(t)=2sin(2000πt) volts and the PCM
transmitter has Fs=20KHz and VLSB=50mV. If sampling starts at t=0, determine
the transmitted bit stream for one period of the input signal.
1
DESAMITO, DARYL DAVE M. Date Performed:
VALERIO, ADRIAN JASPER S. ACTIVITY NO. 1 October 2, 2018
SOURCE CODING Part 5
ECE511FL Date Submitted:
4:30 – 7:30 T
Differential PCM October 9, 2018
(b) Sketch the reconstructed signal y(t) if the transmitted bit stream in (a) is received
by an PCM receiver with Fs'=20KHz and VLSB'=50mV.
y(t), volts
2
DESAMITO, DARYL DAVE M. Date Performed:
VALERIO, ADRIAN JASPER S. ACTIVITY NO. 1 October 2, 2018
SOURCE CODING Part 5
ECE511FL Date Submitted:
4:30 – 7:30 T
Differential PCM October 9, 2018
2. Write a SCILAB program that plots the reconstructed signal y(t) for a given received
bit stream, Fs', and VLSB'. Use the Scilab program to plot the reconstructed signal
for the transmitted bit streams in (1) if Fs'=Fs and V LSB'=VLSB.
3
DESAMITO, DARYL DAVE M. Date Performed:
VALERIO, ADRIAN JASPER S. ACTIVITY NO. 1 October 2, 2018
SOURCE CODING Part 5
ECE511FL Date Submitted:
4:30 – 7:30 T
Differential PCM October 9, 2018
3. Given that x(t)=2sin(2000πt) volts and sampling starts at t=0, use the Scilab programs
to determine the VLSB that should be used to have the best reconstructed signal y(t)
for a given Fs. Let Fs=Fs' and VLSB=VLSB' with VLSB being multiples of 10mV.
(a) Fs=20KHz, VLSB=100mV
4
DESAMITO, DARYL DAVE M. Date Performed:
VALERIO, ADRIAN JASPER S. ACTIVITY NO. 1 October 2, 2018
SOURCE CODING Part 5
ECE511FL Date Submitted:
4:30 – 7:30 T
Differential PCM October 9, 2018
4. Given that x(t)=2sin(2000πt) volts and sampling starts at t=0, use the Scilab programs
to determine the Fs that should be used to have the best reconstructed signal y(t)for a
given VLSB. Let Fs=Fs' and VLSB=VLSB' with Fs being multiples of 1KHz.
5. From the preceding activities, discuss how Fs and V LSB should be selected to have
the best reconstructed signal.
In comparison for the 2 parameters, Fs and VLSB one must be lower and the
other higher. As parameters change for comparison, the condition must be
satisfied to reconstruct the best possible output waveform.
As per this experiment, the value of Fs is greatly related to the value of V LSB
of the input signal. Their relationship revolves around the principle that when
5
DESAMITO, DARYL DAVE M. Date Performed:
VALERIO, ADRIAN JASPER S. ACTIVITY NO. 1 October 2, 2018
SOURCE CODING Part 5
ECE511FL Date Submitted:
4:30 – 7:30 T
Differential PCM October 9, 2018
the value of one of them is high, the other value should be low. If the value of Fs
is rather high, its corresponding VLSB should be low. This is assure the best
reconstructed signal at the receiver.