In this module, we will use the 56002 to measure
noise introduced by quantization and
compare the performance of linear quantization
and logarithmic quantization. First, we will
write a program to perform
Summary: In this module, we will use the 56002 to measure noise introduced by quantization and compare the performance of linear and logarithmic quantization. First, we will write a program to perform N-bit (N less than or equal to 16) linear quantization and logarithmic (mu-law) quantization. Then will use that program to compare the techniques for simple signals and audio signals.
In this module, we will use the 56002 to measure
noise introduced by quantization and
compare the performance of linear quantization
and logarithmic quantization. First, we will
write a program to perform
The codec within the 56002EVM performs 16-bit 2's complement
linear quantization.
mutolin and
lintomu, obtained through a TA. Use
these subroutines to write a program that takes an input
sample, encodes it, decodes it, and sends the result to the
left channel. Calculate the quantization error by subtracting
the encoded/decoded value from the original value. Send this
difference to the right channel, scaled by
Generate a sine wave (or triangle wave) as input to the
56002EVM using the signal generator. With full 16 bit linear
quantization, adjust the input amplitude as high as possible
without saturation at the output. Also, adjust the signal for
no DC offset. Measure and record the power of the signal on
the oscilloscope. For this input signal, measure the
quantization noise power from the right channel on the
oscilloscope for μ-law quantization and linear quantization
with N in the range of 6 to 14 bits. Calculate the
corresponding SNR values. Don't forget the
output scaling factor
Reduce the input signal power by 16 and by 256 (or as low as possible) and repeat the above measurements.
How do the results compare to theoretical predictions? Plot
linear quantizer SNR verses
Replace the signal generator output with an audio signal from
the tape player. Set the volume so that the audio signal does
not saturate at its maximum deviation. Estimate the power of
the signal during the voiced portions. Compare perceptually
the sound quality of the quantized signal for μ-law and
linear coding over a range of