All labs › Learn › Communication Systems
All articlesAll labs

ASK and FSK: Digital Modulation of a Carrier

Learn amplitude shift keying and frequency shift keying: waveforms, bandwidth, detection, and error rates against Eb/N0, with a short MATLAB example.

Updated 28 November 2026 · 4 min read · Designed by Fasih Ullah Saleem

01Bits on a carrier02ASK and on off keying03FSK04Detection05Bit error rate06A short MATLAB example07Choosing between ASK and FSK08Try it in the virtual lab09Questions and answers10Related topics
01

Bits on a carrier

A stream of bits cannot go through a radio channel directly. Digital modulation changes a property of a carrier so that each bit, or each group of bits, is represented by a different state. The two simplest ways change the amplitude or the frequency.

Amplitude shift keying, ASK, uses a different amplitude for a 1 and a 0. Frequency shift keying, FSK, uses a different frequency for a 1 and a 0. They are the digital counterparts of AM and FM.

02

ASK and on off keying

In the simplest ASK the carrier is on for a 1 and off for a 0. This is on off keying, OOK. It is the same as multiplying the carrier by the bit stream b(t), which is 1 or 0.

s(t) = A b(t) cos(2π fc t)
  • The null to null bandwidth is 2 Rb for rectangular pulses, where Rb is the bit rate in bits per second. A 1 kbit/s stream takes about 2 kHz around the carrier when only the main lobe is counted.
  • A receiver can detect it with an envelope detector, with no phase information. A coherent detector performs better.
  • ASK is sensitive to noise and fading, because the amplitude carries the information.
03

FSK

In binary FSK the carrier frequency is switched between two values, one for each bit.

s(t) = A cos(2π (fc + Δf) t)   for a 1
s(t) = A cos(2π (fc − Δf) t)   for a 0
  • The amplitude is constant, so FSK withstands noise and fading better than ASK, and it can use efficient nonlinear amplifiers.
  • The null to null bandwidth with rectangular pulses is about 2 Δf + 2 Rb. The two tones are 2 Δf apart.
  • Tones are orthogonal, which means they do not disturb each other in detection, when their spacing is a multiple of Rb / 2 for coherent detection, or Rb for non coherent detection.

Example: a bit rate of 1000 bit/s with tones at 2 kHz and 3 kHz. Each bit lasts 1 ms and holds a whole number of cycles of either tone, so the waveform joins smoothly at each change.

04

Detection

ASK can be detected with an envelope detector and a threshold. FSK is detected with two band pass filters, one for each tone, followed by envelope detectors. The detector with the larger output decides the bit. An FM discriminator or a PLL can also be used, since FSK is a form of FM with only two frequencies.

After detection, a decision circuit samples the signal once per bit and compares it with a threshold. The result is the received bit.

05

Bit error rate

Noise causes errors. The bit error rate depends on Eb/N0, the energy per bit divided by the noise power density. With Gaussian noise, the error rate for coherent detection is given by the Q function. The Q function gives the chance that Gaussian noise exceeds a given number of standard deviations.

SchemeBit error rateAt Eb/N0 = 10 dB
Coherent BPSK (for comparison)Q( √(2 Eb/N0) )3.9 × 10⁻⁶
Coherent FSK or ASKQ( √(Eb/N0) )7.8 × 10⁻⁴
Non coherent FSK½ exp( − Eb/(2 N0) )3.4 × 10⁻³

Coherent ASK and FSK need about 3 dB more Eb/N0 than BPSK for the same error rate. Non coherent detection loses a little more, but needs no phase reference, so the receiver is simple.

06

A short MATLAB example

This script builds an FSK wave for five bits with a bit time of 1 ms.

bits = [1 0 1 1 0];  Tb = 1e-3;  fs = 100e3;
t = 0 : 1/fs : Tb - 1/fs;
s = [];
for b = bits
    f = 2000 + 1000*b;      % 2 kHz for a 0, 3 kHz for a 1
    s = [s sin(2*pi*f*t)];
end
plot(s)

Change the tone values and plot abs(fft(s)) to see how the two tones move apart and how the bandwidth grows.

07

Choosing between ASK and FSK

ASK is the simplest to build and detect, and it uses the least bandwidth. It suits short, clean links such as an optical remote or a fibre. FSK costs more bandwidth but its constant amplitude gives it better noise and fading performance, so it is common in low rate radio, paging and telemetry.

Do not mix up the bit rate and the symbol rate. With two states each symbol carries one bit, so they are equal. Schemes with four or more states carry several bits per symbol, which is how modern links fit more data into the same bandwidth.

08

Try it in the virtual lab

SinBench has free 3D benches and interactive demos for this topic. Open one to try the ideas above with real instruments, no sign up needed.

Lab 13

ASK and FSK Digital Modulation

Open the lab →Concepts and demos
09

Questions and answers

What is the difference between ASK and FSK?

ASK changes the amplitude of the carrier to send bits. FSK changes its frequency. FSK has constant amplitude, so it handles noise and fading better.

What is on off keying?

It is the simplest form of ASK. The carrier is present for a 1 and absent for a 0.

What is the bandwidth of FSK?

It is roughly 2 Δf + 2 Rb, where Δf is the deviation from the center frequency and Rb is the bit rate.

What is Eb/N0?

It is the energy per bit divided by the noise power density. It is the standard measure of signal strength in digital links, and the error rate falls as it rises.

10

Related topics

Communication Systems

Frequency Modulation: Deviation, Bessel Sidebands and Carson Rule

Learn how frequency modulation works: deviation, modulation index, Bessel sidebands, the carrier null and Carson rule for bandwidth, with FM radio numbers.

Communication Systems

Probability Density Functions of Random Signals: Uniform, Gaussian and Rayleigh

Learn the probability density function of random signals. Compare uniform, Gaussian and Rayleigh densities, their mean and variance, and plot a PDF in MATLAB.

Communication Systems

Amplitude Modulation and the Modulation Index

Learn how amplitude modulation works: the AM equation, the modulation index from an oscilloscope picture, sidebands, bandwidth, power and overmodulation.

SinBench SinBench · Free virtual labsDesigned by Fasih Ullah Saleem
© 2026 Fasih Ullah Saleem. All rights reserved. fasihullahsaleem.com · About · Terms of Use · Privacy