Main Content

FM Broadcast Demodulator Baseband

Demodulate broadcast FM-modulated signal

Library

Modulation > Analog Baseband Modulation

  • FM Broadcast Demodulator Baseband block

Description

The FM Broadcast Demodulator Baseband block demodulates a complex baseband FM signal by using the conjugate delay method, and filters the signal by using a de-emphasis filter. To demodulate stereo audio using 38 kHz, enable stereo demodulation. To demodulate RBDS signals from the 57 kHz band, enable RBDS demodulation.

Parameters

Sample rate (Hz)

Specify the input signal sample rate as a positive real scalar.

Frequency deviation (Hz)

Specify the frequency deviation of the modulator in Hz as a positive real scalar. The system bandwidth is equal to twice the sum of the frequency deviation and the message bandwidth. FM broadcast standards specify a value of 75 kHz in the United States and 50 kHz in Europe.

De-emphasis filter time constant (s)

Specify the de-emphasis lowpass filter time constant in seconds as a positive real scalar. FM broadcast standards specify a value of 75 μs in the United States and 50 μs in Europe.

Output audio sample rate (Hz)

Specify the output audio sample rate as a positive real scalar.

Play audio device

Select this check box to play sound from a default audio device.

Buffer size (samples)

Specify the buffer size the block uses to communicate with an audio device as a positive integer scalar. This parameter is available only when the Play audio device check box is selected.

Stereo audio

Select this check box to enable demodulation of a stereo audio signal. If not selected, the audio signal is assumed to be monophonic.

RBDS demodulation

Select this check box to demodulate the RBDS signal from the input complex baseband FM signal. By default, this check box is not selected.

Number of samples per RBDS symbol

Specify the number of samples of the RBDS output as a positive integer. The RBDS sample rate is given by Number of samples per RBDS symbol × 1187.5 Hz. According to the RBDS standard, the sample rate of each bit is 1187.5 Hz.

This parameter appears when you select the RBDS demodulation check box.

The default is 10.

RBDS Costas loop

Specify whether a Costas loop is used to recover the phase of the RBDS signal. Select this check box for radio stations that do not lock the 57 kHz RBDS signal in phase with the third harmonic of the 19 kHz pilot tone.

This parameter appears when you select the RBDS demodulation check box.

By default, this check box is not selected.

Simulate using

Select the type of simulation to run.

  • Code generation. Simulate model using generate C code. The first time you run a simulation, Simulink generates C code for the block. The C code is reused for subsequent simulations, as long as the model does not change. This option requires additional startup time but provides faster simulation speed than Interpreted execution.

  • Interpreted execution. Simulate model using the MATLAB interpreter. This option shortens startup time but has slower simulation speed than Code generation.

Examples

expand all

Load an audio input file, modulate and demodulate using the FM broadcast blocks. Compare the input signal spectrum with the demodulated signal spectrum.

Open the doc_fmbroadcast model.

Run the model. The spectrum of the baseband FM signal is attenuated at the higher frequencies relative to the original waveform.

Experiment with the model by changing the Frequency deviation (Hz) and the Pre-emphasis filter time constant (s) parameters on the modulator and demodulator and observe the impact on the FM signal spectrum.

Limitations

The input length must be an integer multiple of the audio decimation factor. If the RBDS demodulation check box is selected, the input length in addition must be an integer multiple of the RBDS decimation factor.

Supported Data Types

PortSupported Data Types
Signal Input
  • Double-precision floating point

  • Single-precision floating point

Signal Output
  • Double-precision floating point

  • Single-precision floating point

Algorithms

expand all

The FM Broadcast demodulator includes the functionality of the baseband FM demodulator, de-emphasis filtering, and the ability to receive stereophonic signals. For more information about the algorithms used for basic FM modulation and demodulation, see the comm.FMDemodulator System object™.

References

[1] Hatai, I., and I. Chakrabarti. “A New High-Performance Digital FM Modulator and Demodulator for Software-Defined Radio and Its FPGA Implementation.” International Journal of Reconfigurable Computing (December 25, 2011): 1-10. https://doi.org/10.1155/2011/342532.

[2] Taub, H., and D. Schilling. Principles of Communication Systems. McGraw-Hill Series in Electrical Engineering. New York: McGraw-Hill, 1971, pp. 142–155.

[3] Der, Lawrence. "Frequency Modulation (FM) Tutorial". Silicon Laboratories Inc., pp. 4–8.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced in R2015a