AT2004 [ETC]

4 Channels ADPCM Processor with Echo Cancellation and Conferencing; 4通道ADPCM处理器,回声消除和会议
AT2004
型号: AT2004
厂家: ETC    ETC
描述:

4 Channels ADPCM Processor with Echo Cancellation and Conferencing
4通道ADPCM处理器,回声消除和会议

PC
文件: 总25页 (文件大小:324K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Atelic Systems, Inc.  
AT2004 Application Note Preliminary  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Version 1.0 January 29, 2001  
Description  
The AT2004 is a four full-duplex channels, ADPCM processor with conferencing and echo cancellation capabilities. It  
follows the G.726 ITU Standard for ADPCM compression for 40k, 32k, 24k and 16k bitrates with selectable m-law and A-  
law input/output. It conforms to ITU G.165/G.168 Digital Adaptive Echo Canceller specification for line echo delay up to  
20ms. Using the command serial interface, each individual half-channel can be independently configured for ADPCM,  
conferencing and echo canceling features.  
Features  
·
·
·
·
·
·
·
·
·
4 full channels of ITU G.726 ADPCM  
4 full channels of ITU G.165/G.168 compliant echo cancellation with up to 20ms echo delay  
Fast and robust convergence for adaptive echo canceller, even in the presence of background noise  
Nonlinear processing with adaptive suppression threshold and comfort noise generation for echo canceller  
Per channel selectable m-Law and A-law input/output  
On-chip time slot assignment  
Available internal clock generator and frame sync. generator  
Simple 3-wire serial command port for chip configuration  
Conferencing capabilities for up to 3 additional sound sources  
Applications  
·
·
·
·
DECT  
VoIP / VoDSL  
Wireless telephone systems  
Wireless PBX systems  
Default Settings  
·
·
·
·
·
·
4 channels of m-law PCM input on Xin in time slot 0, 1, 2, 3  
4 channels of the corresponding ADPCM output at 32kbps on Xout in time slot 0, 1, 2, 3  
4 channels of ADPCM input at 32kbps on Yin in time slot 0, 1, 2, 3  
4 channels of corresponding PCM m-law output on Yout in time slot 0, 1, 2, 3  
Echo cancellation enabled for four channels  
Conferencing disabled  
Note: To change the default settings, commands could be sent through the 3-wire interface.  
Page 1 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
PIN Description  
PIN  
SYMBOL  
TYPE  
DESCRIPTION  
16  
XIN  
I
X Channel Data In. Sampled on the falling edge of CLKP during  
selected time slots with MSB first.  
20  
27  
25  
XOUT  
YIN  
O
X Channel Data Out. Updated on the rising edge of CLKP during  
selected time slots with MSB first.  
Y Channel Data In. Sampled on the falling edge of CLKA during  
selected time slots with MSB first.  
Y Channel Frame Sync. Master Y Channel Frame Sync. Signal  
followed by the first time slot of transmission. It can be either  
input or output by initial setup sequence.  
I
FSY  
I/O  
24  
YOUT  
O
Y Channel Data Out. Updated on the rising edge of CLKA  
during selected time slots with MSB first.  
2
RSTZ  
I
Reset. Low active signal to force chip reset.  
13  
12  
17  
XTAL1/MCLK  
XTAL2  
CLKP  
I
Crystal In & Out. 14.318 MHz Crystal connected***.  
O
I/O  
PCM Clock. It can be either input created by external control  
circuit, or output generated by internal control circuit.  
ADPCM Clock. It can be either input created by external control  
circuit, or output generated by internal control circuit.  
Sync 1. Frame sync. for 1st CODEC.  
26  
CLKA  
I/O  
18  
15  
11  
10  
4
SYNC1  
SYNC2  
SYNC3  
SYNC4  
TM1  
O
O
O
O
I
Sync 2. Frame sync. for 2nd CODEC.  
Sync 3. Frame sync. for 3rd CODEC.  
Sync 4. Frame sync. for 4th CODEC.  
TM1 &TM0 . Tie to Ground for normal operation.  
3
TM0  
I
7
6
22  
A1  
A0  
SDI/SDO  
I
I
A1 & A0. Address ID key for 3-wire serial port. If match, 3-wire  
serial port can be enabled for configuration.  
Serial Data In. Data for configuration on the fly by 3-wire serial  
port. Sampled on the rising edge of SCLK with LSB first.  
Serial Data Out. Output data after sending Read Memory  
command by 3-wire serial port. Sampled on the rising edge of  
SCLK with LSB first.  
I/O  
21  
SCLK  
I
Serial Clock. Used to write to the 3-wire serial port registers or  
output data from 3-wire serial port registers.  
Serial Port Chip Select. Low active to enable 3-wire serial port.  
Power. 3.3 Volts.  
23  
28  
14  
19  
SCSZ  
VDD  
Vss1  
Vss2  
I
-
-
-
Ground. 0 Volt.  
***For clock source other than 14.318MHz, please contact Atelic Systems.  
Page 2 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
AT2004 PIN Assignment  
AT2004 SOP Pin Assignment  
28-PIN SOP  
NC  
RSTZ  
TM0  
1
2
28  
27  
26  
25  
24  
23  
22  
21  
20  
19  
18  
17  
16  
15  
VDD  
YIN  
3
CKLA  
FSY  
TM1  
4
NC  
5
YOUT  
SCSZ  
SDI/SDO  
SCLK  
XOUT  
VSS2  
A0  
6
A1  
7
NC  
8
NC  
9
SYNC4  
SYNC3  
XTAL2  
XTAL1  
VSS1  
10  
11  
12  
13  
14  
SYNC1  
CLKP  
XIN  
SYNC2  
1.  
2.  
When there are multiple AT2004 used on the same system, A1, A0 are used to identify the chip.  
A1, A0 are for chip ID. Values are from 00 to 03. They should be connected to microcontroller I/O line or hard wired to either VCC or ground.  
Page 3 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
AT2004 Function Block Diagram  
Channel  
ADPCM  
Bypass  
Conferencing up to 3 sources  
Bypass  
LawA  
LawP  
Linear  
to Law  
3
M
U
X
M
U
X
ADPCM  
Signal  
Gain  
EC  
Reset  
Law to  
ADPCM  
Encoder  
8-bit PCM  
Linear  
M
U
X
EC  
Reset  
ADPCM  
Reset  
M
U
X
ADPCM  
Reset  
Echo  
ADPCM  
Reset  
Canceller**  
M
U
X
M
U
X
Law to  
Linear  
ADPCM  
Decoder  
ADPCM  
Signal  
M
U
X
Linear  
to Law  
8-bit  
PCM  
Gain  
3
ADPCM  
Bypass  
LawP  
LawA  
Channel  
Bypass  
Conferencing up to 3 sources  
**Please refer to the next page  
Page 4 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Echo Canceller Block Diagram:  
EC  
Bypass  
Comfort  
Noise  
Dc_rmv  
NLP_flag  
M
U
X
DC  
Remover  
NLP  
-
Double Talk  
Detector  
Stepsize  
Adaptive  
Filter  
Freeze  
Narrow Band  
Signal Detector  
Tone_flag  
Disabling Tone  
Detector  
DC  
Dc_rmv  
Remover  
No. 5, 6, 7  
Signalling Tone  
Detector  
Note:  
·
A dotted line with arrow mark indicate the control bit in the per channel control command, such  
as LawP, EC reset, LawA, ADPCM bypass, ADPCM reset, Channel bypass, Dc_rmv, Comfort  
noise, NLP_flag, EC bypass, Stepsize, Freeze and Tone_flag. Please refer to page 10, 11 and  
12 for detail information.  
·
Only one full channel is shown. AT2004 has additional capability to process up to 4 full  
channels simultaneously.  
Page 5 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Power  
The AT2004 is powered by a 3.3 V source and draws 100 mA at full operation and < 1 mA in powerdown mode.  
Initialization  
There are two different classes of resets available on the AT2004 chip. For the default reset, hold the RSTZ pin low for 50 ms. This reset  
will bring the chip to a functioning default state. In the default state, the following parameters are set:  
1.  
2.  
3.  
4.  
Pins FSY, CLKP, CLKA default to input (chip will receive these signals from external source)  
4 channels of 32k m-law ADPCM decoder running on channels 0-3  
4 channels of 32k m-law ADPCM encoder running on channels 4-7  
4 echo canceling-pairs defined as follows:  
a. Channel 0 as reference for channel 4  
b. Channel 1 as reference for channel 5  
c. Channel 2 as reference for channel 6  
d. Channel 3 as reference for channel 7  
No Conferencing is selected  
5.  
A second type of reset involving the use of the 3-wire serial interface can also be used direct the pin I/O configurations of FSY, CLKP,  
and CLKA during reset.  
Page 6 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Chip ID Setup  
The two Chip ID pins A0 and A1 (Pins 6,7) should also be set during chip initialization. The “Chip ID” is used to differentiate between  
AT2004 chips in a system that uses more than one AT2004 chip. When using only one chip, it is recommended to tie A0 and A1 to  
digital zero. Thus, when programming the AT2004 chip, you can use the Chip ID = ‘00’ to substitute wherever you see A1, A0.  
The maximum number of AT2004 can be used in a system is 4, and a chip ID must be assigned to each AT2004 in a system. The format  
of A0 and A1 should be specified according to the following table:  
A1 A0 Description  
0
0
1
1
0
1
0
1
AT2004 chip ID=0  
AT2004 chip ID=1  
AT2004 chip ID=2  
AT2004 chip ID=3  
Programming the AT2004  
Using the Serial Port to Input Commands  
Commands for the AT2004 are entered using the 3-wire Serial Interface. The “three wires” refer to the three pins which control the  
interface: SDI/SDO (Serial Data In/Serial Data Out), SCLK (Serial Clock), and SCSZ (Serial Chip Select). When SCSZ is enabled (low),  
the SDI is sampled every SCLK signal. Sampled bits are collected into an 8-bit register and read by the DSP. The SCSZ signal can be  
held more than 8-bits at a time in 8-bit multiples forming a COMMAND SEQUENCE. Different command sequences form the bulk of  
AT2004 programming.  
Generic 3-byte Command Sequence  
Byte 1  
Byte 2  
Byte 3  
LSB B1 B2  
B3 B4 B5 B6 B7  
SDI  
SCLK  
SCSZ  
Command Sequence Overview  
The AT2004 understands five different types of command sequences.  
1. The PLL command sequences sets the operating speed of the chip.  
2. The MCU7byte command sequence set the ADPCM algorithms, bit-slots, delay and EC’s reference channel number.  
3. The Per Channel Control command sequence sets the echo canceling options and other options in the chip.  
4. The Conferencing command sequence sets the conferencing channels.  
Page 7 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
a. This command sequence also adjusts gain control  
5. Chip Power-up and Power-down commands.  
PLL Command Sequence  
The PLL Command Sequence is a 3-byte command sequence that sets the operating speed of the AT2004 to be a multiple of the input  
crystal Mhz.  
Format of PLL Command Sequence  
0
1
F3 F2  
N6 N5 N4 N3 N2 N1 N0 M5  
M4 M3 M2 M1 M0 P2 P1 P0  
F1 F0 A1 A0  
Byte 1  
Byte 2  
Byte 3  
A[1:0] refers to the chip ID (please refer to section talking about chip ID)  
N[6:0] = n,  
M[5:0] = m,  
P[2:0] = table  
binary number used for frequency multiplier  
binary number used for frequency divider  
specialized frequency divider (please refer to table).  
F[3:0] = Divider for CLKP & CLKA Generator. f(CLKA/CLKP) = f(XTAL) / F[3:0]  
Table for P, frequency multiplier  
P = 0 Bypass, PLLclk = XTALclk regardless of N, M.  
P = 1 16  
P = 2  
P = 3  
P = 4  
P = 5  
8
4
2
1
P = 6 No PLLclk, PLLclk = 0 Hz (chip disabled!)  
P = 7 No PLLclk, PLLclk = 0 Hz (chip disabled!)  
The system clock uses N, M, and P to determine the speed of the system clock using the following formula:  
System Clock = (Crystal_clk * N * 4) / (M * P)  
By default, the chip is set to run at 86 Mhz using a 14.3 Mhz crystal input.  
MCU7byte Command Sequence  
This command sequence allows the user to specify the ADPCM algorithm, I/O bit-slots, delay and EC’s reference channel number. The  
command sequence length is variable, and is dependent on the number of channels that are specified. The command sequence consists of  
a header byte, a data portion consisting of 7 bytes for every channel specified, and a footer byte. The total number of bytes in the  
command sequence will be 2+7N where N = number of half channels specified.  
The channels should be sorted by the user in increasing order of ‘Input Begin Bit’. All the YIN channels should be placed in sorted order  
before all the XIN channels.  
Below is a sample of MCU7byte command sequence for two ‘half channels’.  
Page 8 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Command Byte [7:0]  
0
Description  
0
0
0
0
0
A1 A0 Chip Setup Command Header with A1, A0 chip ID  
In/Out Conf_ind ADPCM_ind EC ref. chan. #  
Channel In/Out source, Conferencing/ADPCM indicator and EC’s  
reference Channel #.  
0
Dec  
0
1
1
1
Rate  
ADPCM, configuration command for Channel #0  
Delay (ms)  
Specify delay for EC, should be multiple of 2ms  
These commands specify the begin and ending bits of input data and  
output data for channel #0  
Input Begin Bit  
Input End Bit  
Output Begin Bit  
Output End Bit  
In/Out Conf_ind ADPCM_ind  
0
1
0
1
0
0
Channel In/Out source, Conferencing/ADPCM indicator and EC’s  
reference Channel #.  
ADPCM, configuration command for Channel #1  
Specify delay for EC, should be multiple of 2ms  
These commands specify the begin and ending bits of input data and  
output data for channel #1  
0
Dec  
0
1
Delay (ms)  
Input Begin Bit  
Input End Bit  
Output Begin Bit  
Output End Bit  
1
Rate  
1
1
1
1
1
1
1
Footer of Chip Setup.  
Note: The format of data fields In/Out, Conf_ind, ADPCM_ind, EC ref. Chan. #, Dec, Rate and Delay are specified below.  
In/Out Description  
0
0
1
1
0
1
0
1
Input on Xin, Output on Xout  
Input on Xin, Output on Yout  
Input on Yin, Output on Xout  
Input on Yin, Output on Yout  
Default: Input is on Xin, Output is on Xout for ADPCM encoding functions.  
Input is on Yin, Output is on Yout for ADPCM decoding functions.  
Conf_ind Description  
0
No resource is allocated  
for conferencing operation  
1
Allocate resource for  
conferencing operation  
Default: 0, no resource is allocated for conferencing  
ADPCM_ind Description  
0
1
No resource is allocated  
for ADPCM operation  
Allocate resource for  
ADPCM operation  
Default: 1, allocate resource for ADPCM operation  
“EC ref. Chan. #” specifies the channel number from which the echo canceller derives its reference signal.  
Dec Description  
0
1
ADPCM (Input is PCM, Output is ADPCM) encode  
channel  
ADPCM (Input is ADPCM, Output is PCM) decode  
channel  
Page 9 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Default: 1 for channel 0, 1, 2, 3;  
0 for channel 4, 5, 6, 7.  
Rate Description  
0
0
1
1
0
1
0
1
16k ADPCM bitrate  
24k ADPCM bitrate  
32k ADPCM bitrate  
40k ADPCM bitrate  
Default: 10 for 32k ADPCM bit-rate  
By default, 8 half-channels are specified. The first 4 half-channels are configured as ADPCM decode and the second 4 half-channels are  
configured as ADPCM encode.  
“Delay” specifies the echo delay in unit of ms. A nonzero “delay” means AT2004 will allocate system resource to this channel to perform  
echo cancellation. All nonzero “delay” should be at least 8ms and be an even number.  
Per Channel Control Command Sequence  
The Per Channel Control command sequence allows the user to specify lots of parameters for each half channel. The command sequence  
length is variable, and is dependent on the number of channels that are specified. The format of the command consists of a header, a begin  
channel number byte, and a data portion containing information of each channel. The total number of bytes in the command sequence  
will be 2+2N where N = number of half channels specified.  
Below is a sample of Per Channel Control command sequence for two half channels.  
Command Byte [7:0]  
Description  
0
0
1
1
0
0
A1  
A0  
Per Channel Control  
command Header with A1,  
A0 chip ID  
Channel Configuration Begin  
Channel Stepsize2 Stepzise1 Comfort Comfort  
To begin on first channel, set  
to 0  
Dc_rmv NLP_flag Freeze Configuration for channel 0  
High  
Byte  
Bypass  
EC  
bypass  
Noise2 Noise1  
ADPCM ADPCM LawA  
Reset Bypass  
Ch0  
Ch1  
Low  
Byte  
High  
Byte  
Low  
Byte  
Tone_flag  
EC  
Reset  
LawP  
Idle  
Channel Stepsize2 Stepzise1 Comfort Comfort  
Dc_rmv NLP_flag Freeze Configuration for channel 1  
Bypass  
EC  
bypass  
Noise2  
ADPCM ADPCM LawA  
Reset Bypass  
Noise1  
Tone_flag  
EC  
Reset  
LawP  
Idle  
Note: The format of each data fields like channel bypass, stepsize2, stepsize1, comfort noise2, comfort noise1, dc_rmv, NLP_flag, freeze,  
EC bypass, tone_flag, EC reset, ADPCM reset, ADPCM bypass, lawA, lawP and idle, are specified below.  
Channel Description  
bypass  
0
Normal operation  
1
Totally bypass, output is same as input  
Default: 0  
When channel bypass bit is set, the output of the channel will be derived directly from the input instead of from normal operation’s  
output. Note that the normal operation of the channel is still performed according to the programmed operation for each individual  
function in the channel.  
Page 10 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Stepsize2/Stepsize1 Description  
0
0
1
1
0
1
0
1
Gain is +3dB of normal case  
Normal case (default setting)  
Gain is -3dB of normal case  
Gain is -6 dB of normal case  
Default: 01 for normal case.  
Stepsize control the adaptation speed of adaptive filter. Default setting is the empirically chosen optimal setting. Reduce the stepsize will  
make echo canceller more stable (robust), however, it will take longer time to converge. Increase the stepsize will have opposite effect.  
Comfort_noise2/Comfort_noise1 Description  
0
0
1
1
0
1
0
1
No comfort noise generation  
Pseudo random noise  
Noise generated by clipping  
Not defined  
Default: 10 for noise generated by clipping.  
AT2004 supports two comfort noise generation schemes. One is by generating pseudo random noise with energy matched to the energy of  
background noise. The other one is by clipping the signal to the level of background noise. The later one is chosen as default setting  
because it sounds subjectively better.  
Dc_rmv Description  
0
1
Disable Dc remover  
Enable Dc remover  
Default: 1  
NLP_flag Description  
0
1
Disable NLP processing  
Enable NLP processing  
Default: 1  
NLP (Non Linear Processing) is to block the small amount of residual echo which may be still audible. When NLP is enabled, user can  
further enable or disable comfort noise generation. When NLP is disabled, there will be no comfort noise generation.  
Freeze Description  
0
Normal operation  
1
Coefficient of adaptive filter is frozen (no adaptation)  
Default: 0  
EC  
bypass  
0
Description  
Normal operation of echo cancellation  
1
Echo canceller’s output is derived directly from dc  
remover output  
Default: 0  
Tone_flag Description  
0
1
Disable tone detection  
Enable tone detection  
Default: 1  
Page 11 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
EC  
Description  
reset  
0
1
Normal operation without reset of echo cancellation  
Reset echo canceller internal states, the output of echo canceller is “0”  
Default: 1  
ADPCM Description  
reset  
0
1
Normal operation without reset of ADPCM  
Reset ADPCM internal states  
Default: 1  
When ADPCM reset bit is ‘1’, ADPCM encoder will output “ff”, ADPCM decoder will output “ff” for u-law and “d5 ” for A-law.  
ADPCM Description  
bypass  
0
1
Normal operation with ADPCM  
Bypass ADPCM  
Default: 0  
LawA Description  
0
ADPCM side u-law  
1
ADPCM side A-law  
Default: 0  
LawP Description  
0
PCM side u-law  
1
ADPCM side A-law  
Default: 0  
Idle  
0
Description  
Normal operation  
1
The output is tri-state during its time slot. Once this bit is cleared, it will  
come back to normal operation  
Default: 0  
Conferencing Command Sequence  
The Conferencing Command Sequence allows the user to specify up to three different conferencing sources for conferencing with the  
current channel. Conferencing Command Sequences length is variable, and is dependent on the number of channels that are specified.  
The format of the conferencing command consists of a header, a begin channel number byte, and a data portion containing conferencing  
command reference pair information. The data portion also contains information for Gain control configuration.  
A sample 4 ‘half-channel’ conferencing command is given below.  
Page 12 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Command Byte[7:0]  
Description  
0
0
1
0
0
0
A1 A0 Conferencing Header & Chip ID  
Channel Configuration Begin  
To begin on first channel, set to 0  
Ch0 Gain Conf. Mode  
Chan #2  
Ch1 Gain Conf. Mode  
Chan #2  
Ch2 Gain Conf. Mode  
Chan #2  
Ch3 Gain Conf. Mode  
Chan #2  
Chan #1  
Chan #3  
Chan #1  
Chan #3  
Chan #1  
Chan #3  
Chan #1  
Chan #3  
Conferencing command for channel 0  
Conferencing command for channel 1  
Conferencing command for channel 2  
Conferencing command for channel 3  
Note: Chan #1, Chan #2 and Chan #3 are channel number of conferencing resource with current channel. The format of data fields gain  
and conf. mode are specified below.  
The Gain of the channel is set according to the following table:  
Gain[1:0] Description  
0
0
1
1
0
1
0
1
Gain = 0dB  
Gain = +6dB  
Gain = -12dB  
Gain = -6dB  
Default: gain is set to 0dB.  
The Conf. mode of the channel is set according to the following table:  
Conf. mode[1:0] Description  
0
0
1
1
0
1
0
1
Disable conferencing  
One channel (specified by Chan #1) is used for conferencing  
Two channels (specified by Chan #1, Chan #2 ) is used for conferencing  
Three channels (specified by Chan #1, Chan #2, Chan #3) is used for  
conferencing  
Chip Power-up Power-down command  
The chip power-up / power-down command is a single command byte which enables and disables the AT2004 chip.  
Power-up chip mode will:  
1. Stop the sample processing  
2. Power-up the PLL to the specified multiplier frequency  
3. Reset algorithms on the chip.  
Power-down chip mode will:  
1. Stop the sample processing.  
2. Switch the system clock to the power down clock running approximately at 125 Hz.  
0
0
0
0
0
0
1
0
0
1
0
0
A1 A0 Power-up Chip Command  
A1 A0 Power-down Chip Command  
Note: A1, A0 refers to the chip ID.  
Page 13 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Reference Designs and Additional Notes  
Sample Usage of Echo Canceling  
Echo Cancellation Configuration  
X
-12 ~ -38dBm  
yx  
+
RxF  
ADC  
Echo  
u
u
+
-12 ~-17dBm  
rh  
Far end talker  
-9 ~ -35dBm  
ERL (-6 ~ -11dB)  
EC  
hybrid  
y
TxF  
DAC  
Near end talker  
y
Combo  
AT2004  
Note:  
EC: echo cancellation  
ERL: echo return loss  
ADC: analog to digital conversion  
DAC: digital to analog conversion  
Page 14 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Using the AT2004 with other combo chips  
AT2004  
DX  
DR  
XIN(16)  
FSY(25)  
SYNC.1(18)  
Combo 0  
YOUT(24)  
CLKP(17)  
Combo 1  
Combo 2  
Combo 3  
SYNC2(15)  
SYNC3(11)  
SYNC4(10)  
(20)XOUT  
(27)YIN  
TM1  
CLKA  
TM0  
SDI SCLK SCSZ  
Note:  
SDI, SCLK, SCSZ are for 3-wire commands and should be connected to microcontroller I/O pins.  
CLKA and FSY.  
Typical application of default setting uses National single channel Combo (Quad Combo can be used to replace  
the 4 single Combo)  
When there are multiple AT2004 used on the same systems, A1, A0 are used to identify the chip.  
A1, A0 are for chip ID. Values are from 00-03. They should be connected to microcontroller I/O lines or wired to either  
VCC or ground.  
Page 15 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Conferencing Diagram  
Samples of Conferencing Configurations  
ADPCM output signal  
E
+
E=ADPCM encoder  
PCM input signal  
Up to 3 more input signals  
D
+
ADPCM input signal  
PCM output signal  
D
D
D
D=ADPCM decoder  
Page 16 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Sample Command Sequences:  
ADPCM, conferencing, echo canceling, 32k, mm-Law, 8-half channels:  
For convenience, each half duplex channel is assigned a number corresponding to the internal processing order of the channels. Channels  
0 through Channel 3 correspond with ADPCM decode channels and Channels 4 through Channel 7 corresponds with ADPCM encode  
channels.  
The following is brief description of what each half duplex channel is running:  
Channel 0: (decode ADPCM channel)  
Conferencing:  
Conferencing Disabled.  
Gain Adjustment:  
Echo Canceling:  
No output PCM gain adjustment (0 db gain).  
Channel 0 is a decode channel, thus output value is saved as a reference sample.  
Delay (0)  
MCU7byte Command:  
·
·
·
·
Decode (i.e. input is ADPCM sample sequence)  
u-Law output, 32k ADPCM algorithm.  
Input time slot: @yin[0:3] (beginning bit=0, ending bit=3)  
Output time slot: @yout[0:7] (beginning bit=0, ending bit=7)  
Channel 1: (decode ADPCM channel)  
Conferencing:  
Conferencing Disabled.  
Gain Adjustment:  
No output PCM gain adjustment (0 db gain).  
Echo Canceling:  
Channel 1 is a decode channel, thus output value is saved as a reference sample.  
Delay (0)  
MCU7byte Command:  
·
·
·
·
Decode  
u-Law output, 32k ADPCM algorithm.  
Input time slot: @yin[16:19]  
Output time slot: @yout[16:23]  
Channel 2: (decode ADPCM channel)  
Conferencing:  
Channel 0 + Channel 1 + Channel 4. (Note that conferencing always includes its own channel, in this  
case ch 2).  
Gain Adjustment:  
Echo Canceling:  
No output PCM gain adjustment (0 db gain).  
Channel 2 is a decode channel, thus output value is saved as a reference sample.  
Delay (0)  
MCU7byte Command:  
·
·
·
·
Decode  
u-Law output, 32k ADPCM algorithm.  
Input time slot: @yin[32:35]  
Output time slot: @yout[32:39]  
Channel 3: (decode ADPCM channel)  
Conferencing:  
Channel 4 + Channel 5 + Channel 6  
Gain Adjustment:  
Echo Canceling:  
No output PCM gain adjustment (0 db gain).  
Channel 3 is a decode channel, thus output value is saved as a reference sample.  
Delay (0)  
MCU7byte Command:  
·
·
·
·
Decode  
u-Law output, 32k ADPCM algorithm.  
Input time slot: @yin[48:51]  
Output time slot: @yout[48:55]  
Page 17 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Channel 4: (encode ADPCM channel)  
Conferencing:  
Conferencing Disabled.  
Gain Adjustment:  
Echo Canceling:  
No output PCM gain adjustment (0 db gain).  
Echo canceling enabled with reference sample from Channel 0.  
Delay (8ms)  
MCU7byte Command:  
·
·
·
·
Encode (i.e. output is ADPCM sample sequence)  
u-Law input, 32k ADPCM algorithm.  
Input time slot: @xin[0:7]  
Output time slot: @xout[0:3]  
Channel 5: (encode ADPCM channel)  
Conferencing:  
Conferencing Disabled.  
Gain Adjustment:  
Echo Canceling:  
No output PCM gain adjustment (0 db gain).  
Echo canceling enabled with reference sample from Channel 1.  
Delay (8ms)  
MCU7byte Command:  
·
·
·
·
Encode (i.e. output is ADPCM sample sequence)  
u-Law input, 32k ADPCM algorithm.  
Input time slot: @xin[16:23]  
Output time slot: @xout[16:19]  
Channel 6: (encode ADPCM channel)  
Conferencing:  
Gain Adjustment:  
Echo Canceling:  
Channel 0 + Channel 1 + Channel 5.  
No output PCM gain adjustment (0 db gain).  
Echo canceling enabled with reference sample from Channel 2.  
Delay (8ms)  
MCU7byte Command:  
·
·
·
·
Encode (i.e. output is ADPCM sample sequence)  
u-Law input, 32k ADPCM algorithm.  
Input time slot: @xin[32:39]  
Output time slot: @xout[32:35]  
Channel 7: (encode ADPCM channel)  
Conferencing:  
Gain Adjustment:  
Echo Canceling:  
Channel 4 + Channel 5 + Channel 0.  
No output PCM gain adjustment (0 db gain).  
Echo canceling enabled with reference sample from Channel 3.  
Delay (8ms)  
MCU7byte Command:  
·
·
·
·
Encode (i.e. output is ADPCM sample sequence)  
u-Law input, 32k ADPCM algorithm.  
Input time slot: @xin[48:55]  
Output time slot: @xout[48:51]  
The following is command sequences of conferencing, per channel control and mcu7byte:  
Command bytes sequence specifying conferencing.  
20 // Begin conferencing command. This byte is fixed.  
00 // This byte is fixed (usually begin specifying at channel 0).  
00 // 0 channel high byte. Conferencing is disabled.  
00 // 0 channel low byte  
00 // 1 channel high byte  
00 // 1 channel low byte  
Page 18 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
30 // 2 channel high byte. Conferencing with Chan 0.  
14 // 2 channel low byte. Conferencing with Chan 1 and Chan 4.  
34 // 3 channel high byte. Conferencing with Chan 4.  
56 // 3 channel low byte. Conferencing with Chan 5 and Chan 6.  
00 // 4 channel high byte  
00 // 4 channel low byte  
00 // 5 channel high byte  
00 // 5 channel low byte  
30 // 6 channel high byte. Conferencing with Chan 0.  
15 // 6 channel low byte. Conferencing with Chan 1 and Chan 5.  
34 // 7 channel high byte. Conferencing with Chan 4.  
50 // 7 channel low byte. Conferencing with Chan 5 and Chan 0.  
Command bytes specifying per channel control  
30 // Begin per channel control. This byte is fixed.  
00 // begin at 0 channel. This byte is usually fixed (usually begin specifying at 0).  
36 // 0 channel high byte.  
70 // 0 channel low byte.  
36 // 1 channel high byte.  
70 // 1 channel low byte.  
36 // 2 channel high byte.  
70 // 2 channel low byte.  
36 // 3 channel high byte.  
70 // 3 channel low byte.  
36 // 4 channel high byte.  
70 // 4 channel low byte.  
36 // 5 channel high byte.  
70 // 5 channel low byte.  
36 // 6 channel high byte.  
70 // 6 channel low byte.  
36 // 7 channel high byte.  
70 // 7 channel low byte.  
Command bytes specifying mcu7byte definition.  
00 // begin mcu7byte definition.  
D0 // [7]: input; [6]:output; 0==X; 1==Y, channel 0, yin-yout  
5E // Algorithm Setup, default value = 5EH for expand  
00 // Delay  
00 // Begin input slot bit, ADPCM  
03 // End input slot bit, ADPCM  
00 // Begin output slot bit, PCM  
07 // End output slot bit, PCM  
D0 // [7]: input; [6]:output; 0==X; 1==Y, channel 1, yin-yout  
5E // Algorithm Setup, default value = 5EH for expand  
00 // Delay  
10 // Begin input slot bit, ADPCM  
13 // End input slot bit, ADPCM  
10 // Begin output slot bit, PCM  
17 // End output slot bit, PCM  
F0 // [7]: input; [6]:output; 0==X; 1==Y, channel 2, yin-yout  
Page 19 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
5E // Algorithm Setup, default value = 5EH for expand  
00 // Delay  
20 // Begin input slot bit, ADPCM  
23 // End input slot bit, ADPCM  
20 // Begin output slot bit, PCM  
27 // End output slot bit, PCM  
D0 // [7]: input; [6]:output; 0==X; 1==Y, channel 3, yin-yout  
5E // Algorithm Setup, default value = 5EH for expand  
00 // Delay  
30 // Begin input slot bit, ADPCM  
33 // End input slot bit, ADPCM  
30 // Begin output slot bit, PCM  
37 // End output slot bit, PCM  
10  
1E // Algorithm Setup, default value = 1EH for compress  
08 // Delay  
// [7]: input; [6]:output; 0==X; 1==Y, channel 4, xin-xout  
00 // Begin input slot bit, PCM  
07 // End input slot bit, PCM  
00 // Begin output slot bit, ADPCM  
03 // End output slot bit, ADPCM  
11  
1E // Algorithm Setup, default value = 1EH for compress  
08 // Delay  
// [7]: input; [6]:output; 0==X; 1==Y, channel 5, xin-xout  
10 // Begin input slot bit, PCM  
17 // End input slot bit, PCM  
10 // Begin output slot bit, ADPCM  
13 // End output slot bit, ADPCM  
32  
1E // Algorithm Setup, default value = 1EH for compress  
08 // Delay  
// [7]: input; [6]:output; 0==X; 1==Y, channel 6, xin-xout  
20 // Begin input slot bit, PCM  
27 // End input slot bit, PCM  
20 // Begin output slot bit, ADPCM  
23 // End output slot bit, ADPCM  
33 // [7]: input; [6]:output; 0==X; 1==Y, channel 7, xin-xout  
1E // Algorithm Setup, default value = 1EH for compress  
08 // Delay  
30 // Begin input slot bit, PCM  
37 // End input slot bit, PCM  
30 // Begin output slot bit, ADPCM  
33 // End output slot bit, ADPCM  
FF // End of mcu7byte commands  
Page 20 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Electrical Characteristics:  
(0°C to 70°C)  
DC Electrical Characteristics  
(VDD=3.3V+20%-10%)  
Maximum Units Notes  
Parameter  
Symbol  
Minimum Typical  
Active Supply Current  
Power down  
Input Leakage  
Output Leakage  
Output Current (2.4V)  
Output Current (0.4 v)  
Notes:  
Ivcc  
IVCCPD  
II  
IO  
IOH  
IOL  
40  
< 1  
mA  
mA  
mA  
mA  
mA  
mA  
1,2  
3
-1.0  
-1.0  
1.2  
4
+1.0  
+1.0  
4
1. CLKP = CLKA = 2.048MHz; MCLK = 10MHz.  
2. Outputs open; inputs swinging full supply levels; 4 channel full duplex operation.  
3. Power down; Xtal = high; fsy, CLKA, CLKP all 0.  
4. Xout and Yout are 3-stated.  
PCM Interface  
AC Electrical Characteristics  
(0°C to 70°C)  
(VDD=3.3V+20%-10%)  
Minimum Typical Maximum Units Notes  
Parameter  
CLKP, CLKA Period  
CLKP, CLKA Pulse Width  
Symbol  
tPXY  
tWXYL  
tWXYH  
tRXY  
244  
100  
3906  
ns  
ns  
1
CLKP, CLKA Rise Fall  
Times  
10  
20  
ns  
ns  
ns  
ns  
ns  
ns  
tFXY  
Hold Time from CLKP,  
CLKA to FSY  
tHOLD  
0
2
2
2
2
3
Setup Time from FSY high  
to CLKP, CLKA low  
Setup Time for Xin, Yin to  
CLKP, CLKA low  
Hold Time from Xin, Yin to  
CLKP, CLKA low  
Delay Time from CLKP,  
CLKA to Valid Xout, Yout  
Notes:  
tSF  
50  
50  
50  
10  
tSD  
tHD  
tDXYO  
150  
1. Maximum width of FSY is CLKP/CLKA period (except for signaling frame).  
2. Measured at VIH = 2.0V, VIL = 0.8V, and 10ns maximum rise and fall times.  
3. Load = 150 pF + 2LSTTL loads.  
4. For LSB of PCM or ADPCM byte.  
Page 21 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Master Clock/Reset  
AC Electrical Characteristics  
Parameter Symbol Minimum  
(0°C to 70°C)  
(VDD=3.3V+20%-10%)  
Typical  
100  
Maximum  
125  
Units  
ns  
Notes  
1
MCLK  
Period  
MCLK  
Rise/Fall  
Times  
RSTZ  
Pulse  
tPM  
69.84  
tRM, tFM  
10  
ns  
tRST  
1
ms  
Width  
Note:  
1. MCLK = 14MHz or 10MHz.  
Serial Port  
AC Electrical Characteristics  
(0°C to 70°C)  
(VDD=3.3V+20%-10%)  
Parameter  
Symbol  
Minimum Typical  
Maximum Units Notes  
SDI to SCLK Set Up  
SCLK Period  
tDC  
tP  
tCDH  
tCL  
tCH  
tR, tF  
tCC  
tCCH  
tCWH  
tSCC  
55  
1
55  
250  
250  
ns  
ms  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
1
1
1
1
1
1
1
1
1
1
SCLK to SDI Hold  
SCLK Low Time  
SCLK High Time  
SCLK Rise and Fall Time  
SCSZ to SCLK Setup  
SCLK to SCSZ Hold  
SCSZ Inactive Time  
SCLK Setup to SCSZ  
Falling  
500  
500  
100  
50  
250  
250  
50  
Note:  
1. Measured at VIH = 2.0V, VIL = 0.8V, and 10ns maximum rise and fall time.  
Page 22 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Timing Diagrams  
Master Clock/Reset AC Timing Diagram  
tPM  
tRM  
tFM  
tWMH  
tWML  
MCLK  
RST  
tRST  
tCWH  
3 Wire Timing Diagram  
SCLK  
SCLK  
tCWH  
tSCC  
tCC  
tCH  
tR  
tF  
tCCH  
tCL  
tP  
tDC  
SDI  
tCDH  
Note: SCLK may be either high or low when SCSZ is taken low.  
Page 23 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
PCM Interface AC Timing Diagram  
tPXY  
tHOLD  
tRXY  
tFXY  
tWXYH tWXYL  
CLKP  
CLKA  
FSY  
FSY  
tHF  
tHF  
tSF  
tSD  
tHD  
XIN  
YIN  
(MSB)  
3-STATE  
XOUT  
YOUT  
(MSB)  
tDXYO  
tDXYZ  
Page 24 of 25  
©2001 Atelic System, Inc  
AT2004  
4 Channels ADPCM Processor with Echo Cancellation and Conferencing  
Package Information  
28 Pin SOP AT2004  
Package Information  
D
A
C
B
G
E
eB  
F
Min  
Normal  
2.337  
0.406  
1.041  
17.907  
7.493  
10.414  
--  
Max  
A
B
C
D
E
eB  
F
G
2.286  
0.305  
0.991  
17.856  
7.442  
10.312  
0.635  
1.194  
2.388  
0.508  
1.092  
17.958  
7.544  
10.516  
--  
1.27  
1.346  
Dimension in mm.  
Page 25 of 25  
©2001 Atelic System, Inc  

相关型号:

AT2005B

单片ATX开关电源芯片
ETC

AT2008

8 Channels ADPCM Processor
ETC

AT201

Analog IC
ETC

AT201D1-12

Analog Attenuator
ETC

AT202

PHASE CONTROL THYRISTOR
POSEICO

AT202S08

PHASE CONTROL THYRISTOR
POSEICO

AT2041

Higher Surge ITVS, 4 I/Os, CI/O-VSS<1.5pF, with VCC
BCDSEMI

AT2041K6-5.0TRG1

Higher Surge ITVS, 4 I/Os, CI/O-VSS<1.5pF, with VCC
BCDSEMI

AT2042

General Purpose ITVS, 4 I/Os, CI/O-VSS<1.5pF
BCDSEMI

AT2042K6-5.0TRG1

General Purpose ITVS, 4 I/Os, CI/O-VSS<1.5pF
BCDSEMI

AT209S

PCI Arbiter and Clock Buffer
AME

AT209SG

PCI Arbiter and Clock Buffer
AME