1. Describe the comparison between the Sample signal and the Level-Shifted Signal. Answer: 2. Describe the how the 3-bit code sequence in reference to the Quantized signal. Answer: 3. What line statement/s of the program code which you think is/are responsible in generating the n-bit code sequence? Answer:

Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
icon
Related questions
Question
1. Describe the comparison between the Sample signal and the Level-Shifted
Signal.
Answer:
2. Describe the how the 3-bit code sequence in reference to the Quantized
signal.
Answer:
3. What line statement/s of the program code which you think is/are
responsible in generating the n-bit code sequence?
Answer:
4. Rerun the program using the input n=4 and fm=1. What have you observe
in comparison when n=3 with respect to each recovered signal?
Answer:
5. What conclusion can you give on how an PCM works?
Answer:
Transcribed Image Text:1. Describe the comparison between the Sample signal and the Level-Shifted Signal. Answer: 2. Describe the how the 3-bit code sequence in reference to the Quantized signal. Answer: 3. What line statement/s of the program code which you think is/are responsible in generating the n-bit code sequence? Answer: 4. Rerun the program using the input n=4 and fm=1. What have you observe in comparison when n=3 with respect to each recovered signal? Answer: 5. What conclusion can you give on how an PCM works? Answer:
import numpy as mp
import matplotlib
matplotlib.use(tkAgg*)
import matplotlib.pyplot as plt
n = int(input('Enter
the no. of bits for PCM = '))
fm - int (input('Enter the message frequency - '))
|A=2
fs-100 fm
tlen-1
t = np.airange (np.round(tlen fs))/float(fs)
sx=A*(np.sin(2*np.pi*fm*t))
sig®=(A+ (sx))/2
q-(zª+n)-1
sigl-np.array(np.round(sigu^q))
sigl-np.int_(sigl)
pcode-np.empty(len(sigl),dtype-object)
for i in range(len(sig.¹)):
print(Binary Serial Output')
print (pcode)
排………!
-MODULATION-
recsig-[1
for i in range (len(sig¹)):
sig2-np.empty(len(się¹),dtype-object)
for 1 in range (len(sigl)):
sig2[1]-int((pcode[1]),2)
rccs1g-append((2+(512[1])/q) -A)
plt. legend()
plt.xlabel("Time")
plt.ylabel("Amplitude")
width-n)
-DEMODULATION-
plt.plot(t, sx, color="y")
plt.stem(t, sx, 'y', label='Sampled Signal')
plt.legend()
plt.grid ()
plt.show()
pll. Lille ("Signal")
plt.plot(t, sige, "g, label='Leve-Shifted Signal")
plt.ylabel("Amplitude")
--Waveform-
plt.show()
plt.step(t, sig2, label-Decoded Quantized Signal", color-'r')
plt.legend()
plt.ylabel("Amplitude")
plt.show()
plt.step(t,recsig, label="Recovered Signal", color='r')
plt.legend()
Transcribed Image Text:import numpy as mp import matplotlib matplotlib.use(tkAgg*) import matplotlib.pyplot as plt n = int(input('Enter the no. of bits for PCM = ')) fm - int (input('Enter the message frequency - ')) |A=2 fs-100 fm tlen-1 t = np.airange (np.round(tlen fs))/float(fs) sx=A*(np.sin(2*np.pi*fm*t)) sig®=(A+ (sx))/2 q-(zª+n)-1 sigl-np.array(np.round(sigu^q)) sigl-np.int_(sigl) pcode-np.empty(len(sigl),dtype-object) for i in range(len(sig.¹)): print(Binary Serial Output') print (pcode) 排………! -MODULATION- recsig-[1 for i in range (len(sig¹)): sig2-np.empty(len(się¹),dtype-object) for 1 in range (len(sigl)): sig2[1]-int((pcode[1]),2) rccs1g-append((2+(512[1])/q) -A) plt. legend() plt.xlabel("Time") plt.ylabel("Amplitude") width-n) -DEMODULATION- plt.plot(t, sx, color="y") plt.stem(t, sx, 'y', label='Sampled Signal') plt.legend() plt.grid () plt.show() pll. Lille ("Signal") plt.plot(t, sige, "g, label='Leve-Shifted Signal") plt.ylabel("Amplitude") --Waveform- plt.show() plt.step(t, sig2, label-Decoded Quantized Signal", color-'r') plt.legend() plt.ylabel("Amplitude") plt.show() plt.step(t,recsig, label="Recovered Signal", color='r') plt.legend()
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
MOS logic circuit
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Fundamentals of Electric Circuits
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
Electric Circuits. (11th Edition)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
Engineering Electromagnetics
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,