Question

In: Electrical Engineering

Given: a 315MHz binary message is being ASK modulated with a carrier frequency of 38KHz. Write...

Given: a 315MHz binary message is being ASK modulated with a carrier frequency of 38KHz.

Write a MatLab program to demodulate the signal, and graph the output.

Solutions

Expert Solution

MATLAB CODE

clc;
clear all;
close all;
x=input('Enter the sequence : '); % Binary Information
bp=1/(315e6); %Bp=1/Fm % bit period
disp(' Binary information at Trans mitter :');
disp(x);
%XX representation of transmitting binary information as digital signal XXX
bit=[];
for n=1:1:length(x)
if x(n)==1;
se=ones(1,100);
else x(n)==0;
se=zeros(1,100);
end
bit=[bit se];
end
t1=bp/100:bp/100:100*length(x)*(bp/100);
subplot(3,1,1);
plot(t1,bit,'lineWidth',2.5);grid on;
axis([ 0 bp*length(x) -.5 1.5]);
ylabel('amplitude(volt)');
xlabel(' time(sec)');
title('transmitting information as digital signal');
A1=input('Enter the Amplitude of carrier signal for information 1 : ');
A2=input('Enter the Amplitude of carrier signal for information 0 : ');
br=1/bp; % bit rate
f=br*10; % carrier frequency
t2=bp/99:bp/99:bp;   
ss=length(t2);
m=[];
for (i=1:1:length(x))
if (x(i)==1)
y=A1*cos(2*pi*f*t2);
else
y=A2*cos(2*pi*f*t2);
end
m=[m y];
end
t3=bp/99:bp/99:bp*length(x);
subplot(3,1,2);
plot(t3,m);
xlabel('time(sec)');
ylabel('amplitude(volt)');
title('waveform for binary ASK modulation coresponding binary information');
%XXXXXXXXXXXXXXXXXXXX Binary ASK demodulation XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
mn=[];
for n=ss:ss:length(m)
t=bp/99:bp/99:bp;
y=cos(2*pi*f*t); % carrier siignal
mm=y.*m((n-(ss-1)):n);
t4=bp/99:bp/99:bp;
z=trapz(t4,mm) % intregation
zz=round((2*z/bp))   
if(zz>7.5) % logic level = (A1+A2)/2=7.5
a=1;
else
a=0;
end
mn=[mn a];
end
disp(' Binary information at Reciver :');
disp(mn);
%XXXXX Representation of binary information as digital signal which achived
%after ASK demodulation XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
bit=[];
for n=1:length(mn);
if mn(n)==1;
se=ones(1,100);
else mn(n)==0;
se=zeros(1,100);
end
bit=[bit se];
end
t4=bp/100:bp/100:100*length(mn)*(bp/100);
subplot(3,1,3)
plot(t4,bit,'LineWidth',2.5);grid on;
axis([ 0 bp*length(mn) -.5 1.5]);
ylabel('amplitude(volt)');
xlabel(' time(sec)');
title('recived information as digital signal after binary ASK demodulation');

Results


Related Solutions

For a Double SideBand – Large Carrier (DSB-LC) Modulated Amplitude Modulator (AM) with a carrier frequency...
For a Double SideBand – Large Carrier (DSB-LC) Modulated Amplitude Modulator (AM) with a carrier frequency Fc = 1100kHz z and a maximum modulating signal frequency Fm (max) = 22kHz, determine: a. Frequency limits for the lower side bands (LSB) and upper (USB). b. Bandwidth c. The equation for the AM signal if the carrier has a Vrma voltage of 6V and the modulating signal has a Vrma voltage of 1V. Consider the fm(max) transmission. d. Lower (LSB) and upper...
A carrier signal with unit amplitude and frequency fc1 = 50 kHz is modulated with a...
A carrier signal with unit amplitude and frequency fc1 = 50 kHz is modulated with a message signal ?1(?)=2cos(2??1?), where f1 = 15 kHz, to produce a DSB-SC signal. This DSB signal must be up-converted to a center frequency fc = 100 kHz. a. Determine the image frequency of the DSB signal. [2] b. An Upper-SSB signal with unit amplitude carrier at the image frequency calculated above also exists in the spectrum. The SSB signal is tone modulated with ?2(?)=4cos(2??2?),...
7 If a carrier signal vc(t) = 10 sin (20000πt+π/2) volts is amplitude modulated by message...
7 If a carrier signal vc(t) = 10 sin (20000πt+π/2) volts is amplitude modulated by message vm(t) = 8sin(450πt+π/2), sketch the frequency plot for the resulting AM signal and calculate the transmission bandwidth. Write the expression for the AM signal. If the resulting AM signal is viewed on a CRO, what will be the values of Vmax and Vmin? Also sketch the AM signal in CRO and state whether the signal is under modulated / critically modulated / over modulated;...
Problem 3: The carrier c(t) = 100cos(2p fct) is frequency modulated by the signal m(t) =...
Problem 3: The carrier c(t) = 100cos(2p fct) is frequency modulated by the signal m(t) = 5cos(20000pt) , where fc = 108 Hz. The peak frequency deviation is 20 kHz. Determine the amplitude and frequency of all the signal components that have a power level of at least 10% of the power of the un-modulated carrier component. Hint: The wide-band FM has frequency components, fc, fc+ fm, fc? fm, fc+2 fm, fc?2 fm, and so on. The amplitude of the...
there is a sinusoidal message signal (f = 100 Hz). Make amplitude modulation with carrier frequency...
there is a sinusoidal message signal (f = 100 Hz). Make amplitude modulation with carrier frequency of 10KHz. Use three different modulation depths / indices (0.2 /0.60/0.8). Then demodulate this mixed signal (for these three cases) by try to get message signals. (need matlab codes and graphs)
A carrier signal of (500 kHz) is amplitude modulated to a depth of 75% by a...
A carrier signal of (500 kHz) is amplitude modulated to a depth of 75% by a single tone modulating signal of 18 KHz. The carrier amplitude is 800 Volts , and the antenna equivalent impedance is 70 Ohms. Calculate: 1- modulating wave voltage (Am) [volt] 2- The carrier power (Pc) [Watt] 3- The average output Power (Pt) [watt] 4- The percentage transmission efficiency [%] 5- The lower side band power (PLSB)
Describe briefly how the laser is modulated? Using the simple rate equation for carrier and photon...
Describe briefly how the laser is modulated? Using the simple rate equation for carrier and photon density, explain why the high-speed small-signal response will behavior like L-C circuit? Why the bandwidth (resonant frequency) increases as the current increases?
Write a PowerShell script that will ask your name, Date of Birth (DOB). Print a message...
Write a PowerShell script that will ask your name, Date of Birth (DOB). Print a message on console with a message like the examples. a. If the DOB you entered is in the future, print “Hello XXXXX, there are XXX days to your Birthday!” b. If the DOB you entered is today, print “Hello XXXXX, happy birthday!” c. If the DOB you entered is in the past, print “Hello XXXXX, your next birthday will be in XXX days.” d. Replace...
CF carrier frequency estimations in American Hispanic populations • Carrier screening kits for Cystic Fibrosis alleles...
CF carrier frequency estimations in American Hispanic populations • Carrier screening kits for Cystic Fibrosis alleles have been updated to include more probes (CFTR 60 kit 2) • It is reported to have a detection rate of 83.7% in Hispanic American populations. The same group have a CF incidence of 1 in 9,500. Given the above, determine: 1) CF carrier frequency in the Hispanic American population. 2) Estimate the probability of being a carrier if a CFTR 60 kit result...
With being given two n-bit binary strings, verify if the strings are identical or not. Design...
With being given two n-bit binary strings, verify if the strings are identical or not. Design a procedure showing all steps and write a pseudo-code. What is the complexity of the procedure? If it can tolerate some error, is there a better than linear time solution? If so, write the pseudo-code.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT