Amplitude shift keying in terms of digital communications is a modulation process, which
imparts to a sinusoid two or more discrete amplitude levels. ASK is a form of amplitude modulation that represents digital data as variations in the amplitude of a carrier wave. In an ASK system, the binary symbol 1 is represented by transmitting a fixed-amplitude carrier wave and fixed frequency for a bit duration of T seconds. If the signal value is 1 then the carrier signal will be transmitted; otherwise, a signal value of 0 will be transmitted. These are related to the number of levels adopted by the digital message.
There are so many types of Shift Keying like PSK , FSK , BPSK but here we are talking about only ASK. MATLAB Code:
F1=100; %Carrier Frequency
F2=60; %Data Rate Frequency A=10; %Amplitude t=0:0.001:1; %0 to 1 with 0.001 increment 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; %Modulated Wave MULTIPLIED %==============================MODULATION=================================== v1=x.*u %Modulated Wave MULTIPLIED v2 = u ; v3 = x ; figure(1); 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; figure(2); % //////////////////////////////////////// subplot(3,1,1); plot(t,v1); xlabel('Time'); ylabel('Amplitude'); title('ASK Signal'); grid on; subplot(3,1,2); plot(t,v2); xlabel('Time'); ylabel('Amplitude'); title('Square Pulses'); grid on; subplot(3,1,3); plot(t,v3); %Frequency Must be Half xlabel('Time'); %e.g F1 = 40 , then F2= 20 ylabel('Amplitude'); title('Carrier '); grid on;