Abstract: AMBE2000 is a voice compression / decompression chip with patented technology launched by DVSI. The chip can be used for full-duplex compression and decompression, thereby providing high-quality voice quality with an extremely high compression rate. It introduces its main features, pin functions, control interface and application circuit.
1 Introduction
AMBE2000 is a high-performance, low-power single-chip real-time voice compression and decompression chip, the compression rate can be adjusted by software in the range of 2kbps ~ 9.6kbps, and has FEC (forward error correction), VAD (voice activation detection ) Function and DTMF signal detection function, so it can be widely used in satellite communications, digital mobile communications, confidential communications, voice mail, etc.
2 Pin description and characteristic parameters
The main characteristics and parameters of AMBE2000 are as follows:
â— With high-quality voice quality;
â— Compressed data rate can be adjusted by software in the range of 2kbps ~ 9.6kbps;
â— The error correction rate ranges from 50bps to 7.2kbps;
â— With VAD (Voice Activation Detection) / CNI (Insertion Comfort Noise) function;
â— With DTMF signal detection and generation function;
â— Power supply voltage: + 3.3V;
â— Working temperature range: ï¼40 ~ + 100 ℃;
â— Adopt 100 feet TQFP package.
Table 1 Host interface selection
Port type | Select foot | |
CH_SEL1 | CH_SEL0 | |
Active format | 0 | 0 |
Active Plain | 0 | 1 |
Passive format | 1 | 0 |
Passive plain | 1 | 1 |
Table 2 Voice data bit selection (unformatted)
Number of voice data bits in a word | Select foot | |
BA_SEL1 | BA_SEL0 | |
1 | 0 | 0 |
2 | 0 | 1 |
3 | 1 | 0 |
4 | 1 | 1 |
The pin description of AMBE2000 is as follows:
CHANN_SEL0 ~ 1 (75, 77) feet: host interface type selection terminal? See Table 1 for specific operations;
BAUD_SEL0 ~ 1 (80 ~ 81) feet: unformatted voice data bit selection terminal? See Table 2 for specific operations?
RATE_SEL0 ~ 4 (70 ~ 74) feet: voice compression rate and forward error correction rate selection terminal? See Table 3 for specific operations;
CODEC_SEL0 ~ 1 (84 ~ 85) feet: A / D and D / A interface selection ports? See Table 4 for specific operations;
Table 3 AMBE2000 compressed data rate selection table
Pin 74 | Pin 73 | Pin 72 | Pin 71 | Pin 70 | Voice rate (bps) | FEC rate (bps) | Total data rate (bps) |
1 | 1 | 1 | 1 | 1 | 2000 | 0 | 2000 |
1 | 0 | 0 | 0 | 0 | 3600 | 0 | 3600 |
1 | 0 | 0 | 0 | 1 | 4000 | 0 | 4000 |
1 | 0 | 1 | 1 | 0 | 2400 | 1600 | |
1 | 0 | 0 | 1 | 0 | 4800 | 0 | 4800 |
1 | 1 | 0 | 0 | 0 | 4000 | 800 | |
1 | 0 | 1 | 1 | 1 | 3600 | 1200 | |
1 | 1 | 0 | 0 | 1 | 2400 | 2400 | |
1 | 0 | 0 | 1 | 1 | 6400 | 0 | 6400 |
1 | 1 | 0 | 1 | 0 | 4000 | 2400 | |
1 | 1 | 0 | 1 | 1 | 4400 | 2800 | 7200 |
1 | 0 | 1 | 0 | 0 | 8000 | 0 | 8000 |
1 | 1 | 1 | 0 | 0 | 4000 | 4000 | |
1 | 0 | 1 | 0 | 1 | 9600 | 0 | 9600 |
1 | 1 | 1 | 0 | 1 | 3600 | 6000 | |
1 | 1 | 1 | 1 | 0 | 2400 | 7200 |
* Note: The compressed data rate can also be changed by the control word.
Table 4 A / DD / A hardware configuration
A / DD / A type | CODEC_SEL1 | CODEC_SEL0 |
Ordinary 16-bit linear (sampling rate 8kHz) | 0 | 0 |
AD company AD73311 (sampling rate 32kHz) | 0 | 1 |
Common μ law (sampling rate 8kHz) | 1 | 0 |
General A-law (sampling rate 8kHz) | 1 | 1 |
VAD_EN (86) foot: enable voice activation detection function terminal (active high level);
ECHOCAN_EN (78) foot: Enable the echo cancellation function terminal (active at high level);
SLEEP_EN (83) foot: Sleep mode control port (active high);
SLIP_EN (82) foot: Sliding mode control port (active high);
X2 / CLKIN (68) pin: 16.384MHz clock input pin;
X1 (67) feet: internal oscillator output;
RESET (69) pin: reset pin (active low);
EPR (20) foot: coding package ready flag;
SOFT_EN (79) foot: enable software error code judgment port (active high);
CHAN_RX_DATA (32) foot: used to receive host data to AMBE2000;
CHAN_TX_DATA (42) foot: used to send AMBE2000 data to the host;
CHAN_RX_LK (28) foot: the host receives the clock;
CHAN_TX_CLK (34) foot: the host sends the clock;
CHAN_TX_STRB (38) foot: the host sends / receives a frame synchronization pulse;
CHAN_RX_STRB (30) foot: the host receives the frame synchronization pulse port;
CODEC_RX_STRB (29) foot: A / D frame synchronization pulse receiving end;
CODEC_TX_STRB (37) foot: D / A frame synchronization pulse sending port;
CODEC_RX_DATA (31) foot: A / D sends PCM data to AMBE2000;
CODEC_TX_DATA (41) foot: AMBE2000 sends PCM data to D / A;
CODE_RX_CLK (27) feet: A / D clock;
CODEC_TX_CLK (33) foot: D / A clock;
CLOCK_MODE (51) pin: clock mode selection port, select crystal oscillation mode when this port is connected to high level; select external clock when connected to low level);
VDD (8, 11, 12, 23, 36, 39, 44, 45, 46, 47, 48, 49, 54, 57, 64, 76, 87, 90 feet): positive power supply;
GND (1, 9, 10, 25, 26, 35, 40, 50, 52, 53, 56, 63, 65, 88, 89 feet): ground terminal;
Other pins: N. C, don't use it in the air.
3. Host interface and data format
The interface data format between AMBE2000 and the host is divided into two types: one is formatted; the other is unformatted.
3.1 Formatted
In the case of a format, AMBE2000 generates a compressed data packet approximately every 20ms. This data packet is composed of 24 words; after the data packet is generated, its EPR pin will output a short negative pulse indication to determine the data Package handling. The specific composition of the data packet is as follows:
Format word 0: fixed to x13ECH, which is the header of the data packet;
Format word 1: The upper 8 bits are used for chip power control, 0x00 means normal working mode; 0x55 means low power consumption mode. The functions of the lower 8 bits (higher effective) are listed in Table 5;
Table 5 Format word 1 format
Types of | 7: MSB | 6 | 5 | 4 | 3 | 2 | 1 | 0: LSB |
Input | Make up for missing frames | NC | NC | NC | NC | NC | Insert comfort noise | NC |
Output | NC | NC | Decoded frame repeat | Decode Silent Indication | NC | NC | Coded silence detection | Coded DTMF detection |
Table 6 Format words 2-6 format
Word 2 | Word 3 | Word 4 | Word 5 | Word 6 | Voice rate (bps) | FEC rate (bps) | Total data rate (bps) |
0x0028 | 0x0000 | 0x0000 | 0x0000 | 0x6428 | 2000 | 0 | 2000 |
0x5048 | 0x0000 | 0x0000 | 0x0000 | 0x3948 | 3600 | 0 | 3600 |
0x5250 | 0x0000 | 0x0000 | 0x0000 | 0x4150 | 4000 | 0 | 4000 |
0x1030 | 0x0001 | 0x0000 | 0x34la | 0x6750 | 2400 | 1600 | |
0x5360 | 0x0000 | 0x0000 | 0x0000 | 0x6c60 | 4800 | 0 | 4800 |
0x5250 | 0x2010 | 0x0000 | 0x0000 | 0x7460 | 4000 | 800 | |
0x5048 | 0x0001 | 0x0000 | 0x2412 | 0x6860 | 3600 | 1200 | |
0x1030 | 0x0005 | 0x180c | 0x3018 | 0x7360 | 2400 | 2400 | |
0x6b80 | 0x0000 | 0x0000 | 0x0000 | 0x6c80 | 6400 | 0 | 6400 |
0x5250 | 0x0001 | 0x0000 | 0x542a | 0x5280 | 4000 | 2400 | |
0x5258 | 0x0009 | 0xle0c | 0x4127 | 0x7390 | 4400 | 2800 | 7200 |
0x7fa0 | 0x0000 | 0x0000 | 0x0000 | 0x52a0 | 8000 | 0 | 8000 |
0x5250 | 0x0005 | 0x2010 | 0x6834 | 0x72a0 | 40000 | 4000 | |
0x7fc0 | 0x0000 | 0x0000 | 0x0000 | 0x69c0 | 9600 | 0 | 9600 |
0x5048 | 0x000e | 0x4010 | 0x6a2e | 0x65c0 | 3600 | 6000 | |
0x1030 | 0x000e | 0x68la | 0x511b | 0x76c0 | 2400 | 7200 |
Format words 2 to 6: used to specify and express the compressed data rate of the chip, as shown in Table 6;
Format word 7: This bit is not used in the input data packet, so it should be set to 0x0000 during design; and the bit error rate is indicated in the output data packet;
Format words 8 and 9: not used, usually set to 0x0000;
Format word 10: The upper 8 bits are used to control and indicate the amplitude of the DTMF signal, ranging from 3 to -60 dBM0 (for example: 0x03 = 3, 0x00 = 0, 0xC4 = -60); the lower 8 bits are used to control and detect the DTMF signal The signal sent and detected is a standard North American calling tone. The DTMF codes are listed in Table 7.
Table 7 DTMF codes
DTMF code | DTMF digits | DTMF code | DTMF digits |
0x80 | 1 | 0x84 | 2 |
0x88 | 3 | 0x81 | 4 |
0x85 | 5 | 0x89 | 6 |
0x82 | 7 | 0x86 | 8 |
0x8A | 9 | 0x87 | 0 |
0x83 | * | 0x8B | ## |
0x8C | A | 0x8D | B |
0x8E | C | 0x8F | D |
0xFF | DTMF is invalid |
Table 8 Format word 11 format
Types of | 7: MSB | 6 | 5 | 4 | 3 | 2 | 1 | 0: LSB |
Input | NC | NC | Voice activation (1) | NC | Sleep (1) | Echo cancellation (1) | Encoding / decoding selection | |
Output | NC | NC | NC | NC | Sleep (1) | Echo cancellation (1) | Encoding / decoding selection |
Format word 11: The upper 8 bits are used for decoder volume control, where 0x80 represents the original volume, 0xFF is twice the original volume, and less than 0x80 is to reduce the volume; the functions of the lower 8 bits are listed in Table 8. The encoding / decoding options are as follows: 00 is encoding + decoding; 01 is encoding; 10 is decoding; 11 is not used;
Format words 12 ~ 23: compressed data information. The number of data bits varies according to the data rate. The relationship between the number of data bits and the compressed data rate is as follows:
Number of bits = compressed data rate (bps) / 50 (bps)
For example, at the lowest compression rate of 2kbps, the number of data bits is:
2000/50 = 40 digits.
3.2 Plain
In the case of no format, only the data bits need to be sent, but 50 bits of data per second will be reduced (compared to the formatted case), which will reduce the voice quality. See Table 2 for the number of data bits contained in each word. The relationship between the number of words per frame and the compressed data rate is as follows:
Number of words = [compressed data rate (bps) / 50 (bps)] / digits
In the formula, the selected number of digits must be divisible by the selected compressed data rate. The maximum clock rate of the AMBE2000 serial port is 2.048MHz.
Figure 1 Practical circuit for voice sampling, compression, and decompression composed of AMBE2000 and AD73311
4 Application circuit
Figure 1 shows a practical circuit for speech sampling, compression, and decompression formed by AMBE2000 and AD73311. Among them, AD73311 is a vocoder chip of A-DI. Its sampling rate can reach 32kHz, 16-bit sampling data, It has good sound quality, so it can be used with AMBE2000 and has achieved good results in practical applications. In the figure, the pin connection method selected by AMBE2000 defines the compression ratio as 2kbps? At the same time, the circuit is set in the external input clock mode, and the echo cancellation, voice activation, and slip compensation functions are effective. Its EPR pin is used to output the packet ready indicator signal. After the circuit is powered on and works normally, you can also reset the AMBE2000 through software. Therefore, the AMBE2000 voice compression codec is very flexible in application.
5 Conclusion
Voice communication occupies a very important position in digital communication. The data compression method composed of AMBE2000 and AD73311 introduced in this article can not only save storage resources, but also reduce the demand for communication bandwidth. Therefore, in some special application fields, AMBE2000 voice compression codec chip has very broad application prospects.
Follow WeChat
Download Audiophile APP
Follow the audiophile class
related suggestion
3-2000V adjustable DC stabilized power supply circuit