Working principle and hardware interface of AMBE-1000 voice compression chip

Publisher:码字奇思Latest update time:2011-04-28 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
AMBE is a low-bit-rate, high-quality voice compression algorithm based on MBE technology. It has the advantages of good voice quality and low encoding baud rate, and is embedded in DVSI's AMBE-1000 voice compression chip. The chip is a high-performance multi-rate voice encoding/decoding chip. Its voice encoding/decoding rate can be between 2400 and 9600b/s, changing at intervals of 50b. There are independent voice encoding and decoding channels inside the chip, which can complete the voice encoding and decoding tasks at the same time; and all encoding and decoding operations are completed inside the chip, without the need for external memory. These characteristics of AMBE-1000 make it very suitable for digital voice communication, encrypted voice communication and other occasions where digital voice processing is required.

2 Working Principle and Hardware Interface of AMBE-1000

2.1 Basic Workflow

Simply put, the working process of AMBE-1000 is shown in Figure 1. AMBE-1000 can be seen as consisting of two separate encoders and decoders. The encoder receives an 8kHz voice data sampling stream (such as 16-bit linear, 8-bit A-law or 8-bit U-law) and outputs a channel data stream at a desired baud rate. Conversely, the decoder receives a channel data stream and synthesizes a voice data stream. The interface timing of the encoder and decoder of AMBE-1000 is completely asynchronous.


2.2 Channel Interface

The channel interface is used to describe the compressed bit stream output from the encoder and the compressed bit stream input to the decoder. The interface can also output status information, for example, it can detect whether there is a dual-tone multi-frequency (DTMF) voice signal input. In addition, the interface performs more complex control operations on the encoder/decoder (usually during initialization). These control functions include the selection of voice and error correction code speed, and the equipment of A/DD/A chips. In most voice transmission systems, the actual encoded bit stream is extracted from the channel in a certain format and combined with system information to form a system transmission data stream, which is sent through the transmission channel; it is extracted at the receiving end and formed into a data stream in the format required by AMBE-1000 through the decoder.

AMBE-1000 has multiple working modes: parallel and serial, framed and non-framed formats, active and passive. Among them, the parallel passive frame mode is the most flexible and practical working mode. The corresponding working mode can be selected by connecting the pull-up resistor and the dip switch to the corresponding interface selection pin. By adopting the above method, the voice rate and error correction code rate can be freely selected between 2400~9600b/s and 50~4750b/s through the selection switch. In the serial active mode, the working clock of AMBE-1000 is 27MHz, and the clock of CHS_O_CLK is 4.5MHz (27MHz/6), that is, 1 bit of data needs to be read within 0.22μs. Even if the microcontroller works at 24MHz, it cannot read the data, so the passive mode must be adopted, so that the clock of CHS_O_CLK can be set by itself, but the clock also needs to meet the requirement of reading 34 bytes of data (i.e. 1 frame of data) within 20ms; at the same time, the parallel port occupies more interface resources, so the serial passive frame mode is adopted, and its hardware connection is shown in Figure 2.

2.3 Data Format

The data of AMBE-1000 is in frame format, and each frame consists of 17 words. The encoder outputs 17 words every 20ms, and the decoder receives 17 words. The first 5 words of each frame consist of frame flag (Header), identification flag (ID), status (output) or control (input) information, and the remaining 12 words constitute the encoded/decoded data. These 12 words, totaling 192 bits, are the maximum data rate of AMBE-1000 working in 9600b/s mode (192b/frame×50frame/s=9600b/s). When the encoding/decoding data rate is lower than 9600b/s, the insufficient bits are filled with 0. It should be noted that no matter what rate the AMBE-1000 works at, all 272 bits (17 words×16b=272b) of frame data (including any unused trailing zeros) must be output from the encoder or input to the decoder. The frameless format can only be used in serial mode.

2.4 AMBE-1000 and TLC32044 interface circuit

AMBE-1000 requires the voice data of A/D and D/A to be input and output in serial mode. The key to this interface circuit is the frame synchronization of the voice data. Its hardware interface circuit is shown in Figure 3. Among them, 5.184MHz is used as the working clock of TLC32044, and also as the trigger pulse of the D flip-flop. The shift pulse (SHIFT CLK) generated by TLC32044 is used to realize the synchronous transmission of bits. By setting C_SEL0-2 to 010, the TLC32044 chip is selected.

2.5 Clock and Reset

The working clock of AMBE-1000 is 26~30MHz. It has three input modes: direct input from TTL clock source, direct input from CMOS clock source or oscillator, and input using crystal oscillator circuit. In this system, the clock is input using crystal oscillator circuit. The effective reset signal is low level and must last for more than 6 clock cycles.

3 Peripheral interface circuit

3.1 Working Principle of TLC32044

The digital processing of speech signals cannot do without the A/D and D/A conversion of speech signals. In this design, a 14-bit dynamically adjustable high-precision programmable A/D and D/A TLC32044 chip produced by TI of the United States is selected. As shown in Figure 4, TLC32044 consists of anti-aliasing input filter, A/D, D/A, output reconstruction filter, etc. The separation of analog and digital ground, analog and digital power supply can reduce noise and ensure a wide dynamic range. The analog circuit part uses a differential circuit to minimize noise. TLC32044 also has programmable sampling frequency, and its sampling frequency can be controlled by software in the range of 7.2kHz to 19.2kHz. It can work in four working states: synchronous word, byte transmission and asynchronous word, byte transmission, respectively using 16-bit word or 8-bit byte serial communication mode, with a maximum conversion accuracy of 14 bits, and can work with only an external 5.184MHz clock. The chip can accommodate 2 analog signal inputs at the same time through programming. After the system is powered on (or reset), it works in its default working mode, that is, 16-bit word or 8-bit byte serial communication mode, with a maximum conversion accuracy of 14 bits, and only needs an external 5.184MHz clock to work. The chip can accommodate 2 analog signal inputs at the same time through programming. After the system is powered on (or reset), it works in its default working mode, that is, 16-bit word synchronous serial communication, with a sampling frequency of 8kHz. To change the working state of TLC32044, you can program and send the control word to TLC32044 through the DX pin.

In the DR timing, the D1 and D0 bits are empty, and the effective precision of A/D conversion is D15~D2; while the D1 and D0 bits in the DX timing are used as control bits. FSR and FSX are the receiving and sending frame synchronization signals, which are 8kHz. In the synchronous working mode, the two are exactly the same.

3.2 TLC32044 peripheral interface circuit

In order to realize the voice input and output of the system and ensure effective gain, the input and output voice signals must be amplified. The circuit is shown in Figure 5. In this system, a high-performance, low-noise LM1458 amplifier is used to adjust the gain of the input and output voice signals through a 20kΩ adjustable potentiometer. A -5V power supply is required in this circuit, while general circuits only provide a +5V power supply. Therefore, the MAX660 chip is used in the circuit design to achieve the conversion of +5V to -5V power supply. In this way, the entire circuit can be powered by a single power supply.

System Analysis

The block diagram of the voice compression system is shown in Figure 6. The system can select the working rate independently. In the serial active frame mode, the serial input and output pins of AMBE-1000 can be short-circuited to perform system self-test to confirm whether the system is normal. When designing the system, attention should be paid to the distinction between analog ground and digital ground to avoid the introduction of background noise. This circuit design has been used in the end voice compression of intelligent communication terminals, which can reduce the amount of voice data and increase the confidentiality of voice. At the same time, this circuit can also be used in solid-state interview machines, just add a rewritable Flash chip and control keys.

Reference address:Working principle and hardware interface of AMBE-1000 voice compression chip

Previous article:The relationship and principle of series and parallel connection of speakers
Next article:How to reduce the noise of active speakers

Latest Analog Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号