Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
ASK shown in the diagram is actually OOK(on-off keying). Generate input sq.wave. Then Generate a carrier(cosine wave) with a higher frequency as compared to sq.wave.. just multiply both u will get ASK..
For ASK input square wave should have levels 0 and 1.. Change the levels to -1 and +1.. follow the similar procedure to obtain PSK.. For FSK u have to generate two carriers(sinusoidal and triangular as in the diagram).. Using an if loop switch the output depending on whether the input is 1 or 0..
Hello Ill post my code here, would u mind having a look at it please
thanks
This is for ASK
% Generating a input square wave
x1 = 0pi/100)10*pi);
y1 = square(x1);
A = plot(x1,y1);
figure(1),A,title( 'Square wave');xlabel('x'); ylabel('y');ylim([0,1]);grid;
% Generating a carrier(cosine wave) with a higher frequency as compared to sq.wave
f=0.8
t = 0pi/100)10*pi);
y2 = cos(2*pi*f*t);
figure(2),B = plot(t,y2),title( 'Sine wave');xlabel('x'); ylabel('y');ylim([-2,2]); xlim([0,35]);grid;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.