DSP System Toolbox
This example shows how to compare three different delta-modulation (DM) waveform quantization, or coding, techniques.
What are DM, LDM, CVSD, and ADPCM?
Delta-modulation (DM) is a differential waveform quantization or coding technique. A DM encoder uses the error between the original signal to be coded and the coded signal itself to create a differentially quantized data stream. This data stream, usually the computed error signal, is a lower-bit-rate signal that can be decoded by a matched decoder on the receiver side in order to achieve data compression, and therefore low data transmission rates.
Linear Delta-Modulation (LDM), Continuously Variable Slope Delta-Modulation (CVSD), and Adaptive Differential Pulse Code Modulation (ADPCM) are differential waveform coding techniques. Each employ two-level, or one-bit, encoders, and may be performed at many different sampling or data rates. The encoded bit rate is usually directly proportional to the input signal sample rate. For example, in both LDM and CVSD, one bit per sample is used to compute the encoded data stream.
In LDM, a constant step-size is used to approximate the input signal with a single bit per signal sample. In the encoded bit stream, each 1 bit increases the amplitude by the step-size as compared to the previous decoded signal sample. Each 0 bit decreases the amplitude by the step-size. Using LDM, the encoder performance can suffer due to a condition known as "slope overload" when the input signal slope changes too rapidly for the encoder to track it accurately, for instance during high frequency content.
CVSD is LDM with the addition of an adaptive step-size. By adjusting or adapting the step-size to the changes in slope of the input signal, the encoder is able to represent low-frequency signals with greater accuracy without sacrificing as much performance due to slope overload at higher frequencies. When the slope of the input signal changes too quickly for the encoder to keep up with it, the step-size is increased. Conversely, when the input signal slope changes slowly, the step-size is decreased. A slope-overload detector and syllabic filter are used in conjunction with a pulse amplitude modulator (PAM) to accomplish the step-size adaptation.
CVSD is used in both commercial and military communications where "toll quality" or "communications quality" is required, yet low computation complexity and low memory requirements are desirable. Two examples of this technique are U.S. MIL-STD-188-113 (16 kbs and 32kbs CVSD) and U.S. Federal Standard 1023 (12 kbs CVSD). In addition, encoded CVSD data can be encrypted and made more secure, which is desirable for many wireless communications applications including speech and general-purpose audio coding.
ADPCM is similar to CVSD, however it provides more accuracy and therefore preserved frequency bandwidth at the expense of additional computational requirements for the adaptation step-size calculations.
Comparison of Techniques
The model's scopes show the behavior of the three coding techniques. The first display in each scope shows the original signal in yellow and the recovered signal in magenta that has been encoded and then decoded. You can observe the response of each technique to both constant and rapidly changing signal regions.
Because LCM uses a constant step size, it exhibits slope overload while the signal is changing rapidly and grandular noise while the signal is constant. Both CVSD and ADPCM mitigate these problems using a variable step size.
For both CVSD and ADPCM the variable step size is shown in the center display. For all three techniques the one-bit encoded transmission signal is shown in the lower display.
Proakis, J. G. Digital Communications. Third Ed. Sec. 3 ("Source Coding"). McGraw Hill. 1995.
Taylor, D. S. "Design of Continuously Variable Slope Delta Modulation Communication Systems." Application Note AN1544/D. Motorola®, Inc. 1996.
"Continuously Variable Slope Delta Modulation: A Tutorial." Application Doc. #20830070.001. MX-COM, Inc., Winston-Salem, North Carolina, 1997.
Conahan, S., Alva, C., and Norris, J. "Implementation of a Real-time 16 kbps CVSD Digital Voice Codec on a Fixed-point DSP." International Conference on Signal Processing Applications and Technology (ICSPAT) Proceedings, Vol. 1. 1998. pp. 282-286.