You are on page 1of 9

ASF

ASK Code

[cc lang=Matlab]clear all;


clc;
close all;
F1=input(Enter the frequency of carrier=);
F2=input(Enter the frequency of pulse=);
A=3;%Amplitude
t=0:0.001:1;
x=A.*sin(2*pi*F1*t);%Carrier Sine wave
u=A/2.*square(2*pi*F2*t)+(A/2);%Square wave message
v=x.*u;
subplot(3,1,1);
plot(t,x);
xlabel(Time);
ylabel(Amplitude);
title(Carrier);
grid on;
subplot(3,1,2);
plot(t,u);
xlabel(Time);
ylabel(Amplitude);
title(Square Pulses);
grid on;subplot(3,1,3);
plot(t,v);
xlabel(Time);
ylabel(Amplitude);
title(ASK Signal);
grid on;
[/cc]
Applicao

Binary Amplitude Shift Keying (BASK) or On Off Keying (OOK) is one of the digital modulation
techniques in which the amplitude of carrier is switched according to the binary data. This digital
modulation scheme is used to transmit digital data over optical fiber, point to point military
communication applications, etc. Binary 1 is represented by a short pulse of light and binary 0 by
the absence of light. Amplitude Shift Keying modulation and demodulation processes are relatively
inexpensive and easy to implement. The main disadvantage of ASK is that it is sensitive to
atmospheric noise, distortions and propagation conditions. Here is the practical circuit diagram of
amplitude shift keying modulator using CD4016 IC. CD4016 is a switching IC with four embedded
switches.

Components Required
1. CD4016 IC
2. NOT gate 7404

Working of ASK circuit


Sine wave can be obtained from a function generator or by using a RC phase shift oscillator.

Two switches inside the quad analog switch CD 4016 are used in the circuit. When the
enable input of one gate is at high, then the input will appear at the output.
When the binary data is 1, sine wave is switched to output because the sine wave is connected to 1st
switch and the binary data is applied to enable pin (13th pin) of 1st switch.
When binary data is 0, the 1st switch is disabled and 2nd switch is enabled using NOT gate
arrangement.
The input of 2nd pin is grounded, hence we get 0V for binary 0.

The output pins of both first and second switches are shorted and the output is taken from it.
The block diagram is self explanatory.

Components Pin out


RC Phase shift Oscillator using 741 op amp-
Design and output waveform simulation
RC phase shift oscillator is a sinusoidal oscillator used to produce sustained well shaped sine wave
oscillations. It is used for different applications such as local oscillator for synchronous receivers,
musical instruments, study purposes etc. The main part of an RC phase shift oscillator is an op amp
inverting amplifier with its output fed back into its input using a regenerative feedback RC filter
network, hence the name RC phase shift oscillator.
By varying the capacitor,the frequency of oscillations can be varied. The feedback RC network has
a phase shift of 60 degrees each, hence total phase shift provided by the three RC network is 180
degrees. The op amp is connected as inverting amplifier hence the total phase shift around the loop
will be 360 degrees. This condition is essential for sustained oscillations. We have already discussed
about RC phase shift oscillator using transistor.

Components Required
1. Resistors (1.2K, 1Kx2)
2. Potentiometer (50K)
3. Capacitors (0.01Fx3)
4. 741 Op Amp
http://www.circuitsgallery.com/2012/08/ask-modulation-matlab-code2.html
https://web.stanford.edu/class/ee102b/contents/DigitalModulation.pdf

You might also like