|
|||
|
|
|||
|
From Microchip Technology, Inc.
AN643 Adaptive Differential Pulse Code Modulation ® Using PIC Microcontrollers 3.00. The ITU (formerly CCITT) G.721 ADPCM algo- Author: Rodger Richey rithm is well known and has been implemented on Microchip Technology Inc. many digital signal processors, such as the TMS320™ DSP family of devices from Texas Instruments™ and the ADSP-2100 family of devices from Analog Devices. INTRODUCTION ITU G.721 uses floating-point arithmetic and logarith- In the past, adding speech recording and playback mic functions, which are not easily implemented in the capability to a product meant using a digital signal 8-bit microcontroller world. The IMA Reference processor or a specialized audio chip. Now, using a Algorithm significantly reduces the mathematical simplified Adaptive Differential Pulse Code Modulation complexity of ITU G.721 by simplifying many of the (ADPCM) algorithm, these audio capabilities can be operations and using table look ups where appropriate. ® microcontroller or DSC digital signaladded to any PIC controller. This application note will cover the ADPCM COMPRESSION compression and decompression algorithms, and an application using a PIC18F67J10 microcontroller. The input, s , to the encoder routine must be 16-bit i two’s complement speech data. The range of allowable is 32767 to -32768. Figure 1 shows a blockvalues for s DEFINITION OF TERMS i diagram for ADPCM compression and Appendix B: step size – value of the step used for quantization of “Generic ADPCMEncoder() Function” lists the analog signals and inverse quantization of a number of generic C code for the ADPCMEncoder () function. steps. , and the quantizer step sizeThe predicted sample, s p index (q) are saved in a structure for the next iteration quantization – the digital form of an analog input of the encoder. Initially, the quantizer step size index signal is represented by a finite number of steps. ) are set to zero. Theand the predicted sample (s p adaptive quantization – the step size of a quantizer is encoder function takes a 16-bit two’s complement dramatically changed with time in order to adapt to a speech sample and returns an 8-bit number containing changing input signal. the 4-bit sign-magnitude ADPCM code (t). inverse quantizer – a finite number of steps is converted into a digital representation of an analog FIGURE 1: ADPCM ENCODER BLOCK signal. DIAGRAM adaptive predictor – a time varying algorithm that Output of Encoder calculates an estimate of the input signal from the quantized difference output. s + d i dt q Inverse Quantizer Quantizer THEORY OF OPERATION s r Step Size Adaptive The ADPCM algorithm takes advantage of the high PredictorAdapter correlation between consecutive speech samples, q s p which enables future sample values to be predicted. Products & Services
Analog-to-digital converters (ADC) sample an analog signal and convert it to a series of digital values to represent the signal to a computer processor.
Data acquisition computer boards are self-contained printed circuit boards that typically plug into the backplane, motherboard, or otherwise interface directly with the computer bus.
Signal converters contain inputs for one type of signal and outputs of another. Features can also include filtering and amplification or attenuation.
Motor speed controllers are electronic devices that control motor speed. They carry specifications for drive type, product classification, electrical ratings, and operating parameters.
Encoder and resolver signal conditioners accept encoder and resolver measurements and convert or condition these signals into digital data or suitable levels.
Product Announcements
Topics of Interest
AN1152 Achieving Higher ADC Resolution Using Oversampling THEORY OF OPERATION Author: Jayanth Murthy Madapura Microchip Technology Inc. As previously mentioned, ADCs transform analog signals into...
(Read More)
Access Time: Time between the memory receiving a new input address and the output data s becoming available in a read operation.
Active Load: A transistor that acts as a load for another transistor.
(Read More)
Pulse Width Modulation (PWM) modules, which produce basically digital waveforms, can be used as cheap Digital-to-Analog (D/A) converters only a few external components. A wide variety of...
(Read More)
Many new schemes for conveying speech or data information on an RF carrier for land line or radio transmission have been developed using different forms of modulation other than the older analog...
(Read More)
AN1078 Sensorless Field Oriented Control of PMSM Motors This application note focuses on the PMSM-based sen- Author: Jorge Zambada sorless FOC control of appliances because this control Microchip...
(Read More)
|
|