Communications Blockset    
DPCM Encoder

Encode using differential pulse code modulation

Library

Source Coding

Description

The DPCM Encoder block quantizes the input signal using differential pulse code modulation. The input must be a scalar signal. Its two outputs are the quantization index and the quantization-encoded signal.

This block uses the Sampled Quantizer Encode block. The description of that block gives more detailed information about quantization indices and quantization-encoded signals.

Quantization partition is a vector whose entries give the endpoints of the partition intervals. Quantization codebook, a vector whose length exceeds the length of Quantization partition by one, prescribes a value for each partition in the quantization. The first element of Quantization codebook is the value for the interval between negative infinity and the first element of Quantization partition.

You can think of the predictor as a transfer function for an IIR filter, hence a rational function of z-1. Specify the predictor's numerator and denominator by listing their coefficients in the vectors Predictor numerator and Predictor denominator, respectively. List the coefficients in order of increasing powers of z-1.

You can use the function dpcmopt in the Communications Toolbox to train the Predictor numerator, Predictor denominator, Quantization partition, and Quantization codebook parameters. The output of dpcmopt omits the denominator of the predictor, assuming that it will be 1. In most DPCM applications, the denominator of the predictor transfer function is 1.

If Predictor numerator has the form [0, x] and Predictor denominator is 1, then the modulation is called delta modulation.

Dialog Box

Predictor numerator
The vector of coefficients of the numerator of the predictor transfer function, in order of ascending powers of z-1. The first entry must be zero.
Predictor denominator
The vector of coefficients of the denominator of the predictor transfer function, in order of ascending powers of z-1. Usually this parameter is 1.
Quantization partition
The vector of endpoints of the partition intervals. The elements must be in strictly ascending order.
Quantization codebook
The vector of output values that the quantizer assigns to each partition.
Sample time
The block's sample time.

Pair Block

DPCM Decoder

References

[1]  Kondoz, A. M. Digital Speech. Chichester, England: John Wiley & Sons, 1994.


  DPCM Decoder DQPSK Demodulator Baseband