Part Number Hot Search : 
AD826 3022S VQFP100 3ACNTB 25Q32A 6M000 H822J B2412
Product Description
Full Text Search
 

To Download CD6420 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  preliminary product information this document contains information for a new product. cirrus logic reserves the right to modify this product without notice. 1 copyright ? cirrus logic, inc. 1997 (all rights reserved) cirrus logic, inc. crystal semiconductor products division p.o. box 17847, austin, texas 78760 (512) 445 7222 fax: (512) 445 7581 http://www.crystal.com cs6420 full-duplex speakerphone chip features l single-chip full-duplex hands-free operation l automatic gain control l optional 34 db microphone preamplifier l integrated mute and volume control l integrated 80 db idr dual codec l speech-trained network and acoustic echo cancellers l powerdown mode l microcontroller interface general description most modern speakerphones use half-duplex operation, which switches transmission between the far-end talker and the speakerphone user. this is done because the acoustic coupling between the speaker and microphone is much higher in speakerphones than in handsets where the coupling is mechanically suppressed. the cs6420 enables full-duplex conversation with a sin- gle-chip solution. the cs6420 can easily replace existing half-duplex speakerphone ics with a huge in- crease in conversation quality. the cs6420 consists of telephone & audio interfaces, two codecs and an echo-cancelling dsp. ordering information cs6420-cs 20-pin soic cdb6420 evaluation board bandgap ao dgnd ni data strobe drdy clki clko api rst microcontroller interface no avdd dvdd avdd nc4 nc3 nc2 nc1 agnd adc 0,6,9.5,12 db high pass filter rxagc rx suppression half duplex mute/volume control dac s + - pre-emphasis network echo canceller filter adc 0,6,9.5,12 db filter hgih pass txagc suppression tx half duplex control mute/volume dac s + - filter echo canceller acoustic pre-emphasis apo mb 34 db 1 k w 2.12 v 3.5 v clock generation jun 97 ds205pp2
cs6420 2 ds205pp2 table of contents absolute maximum ratings ..............................................................................................4 recommended operating conditions..............................................................................4 power consumption ..........................................................................................................4 analog characteristics ........................................................................................................4 analog transmission characteristics..............................................................................5 microphone amplifier ........................................................................................................5 digital characteristics .......................................................................................................5 overview ...................................................................................................................... ......8 functional description .....................................................................................................8 analog interface .......................................................................................................8 acoustic interface ..............................................................................................9 network interface ............................................................................................10 microcontroller interface .........................................................................................10 description ......................................................................................................10 register definitions .........................................................................................11 register 0..................................................................................................12 mic - microphone preamplifier enable ...............................................12 tsd - transmit suppression disable.................................................12 gb - graded beta ..............................................................................12 acc - acoustic coefficient control ....................................................13 rvol - receive volume control .........................................................13 tgain - transmit analog gain ...........................................................13 register 1..................................................................................................14 hd - half-duplex disable...................................................................14 rsd - receive suppression disable .................................................14 taps - aec/nec tap allocation ........................................................15 ncc - network coefficient control ....................................................15 tvol - transmit volume control.........................................................15 rgain - receive analog gain............................................................15 register 2..................................................................................................16 nerle - network erle threshold ......................................................16 nfnse - network full-duplex noise threshold .................................16 rhdet - receive half-duplex detection threshold ...........................17 hdly - half-duplex holdover delay....................................................17 nsermp - background noise power estimator ramp rate..............17 rsthd - receive suppression threshold..........................................17 pcsen- path change sensitivity .......................................................17 register 3..................................................................................................18 aerle - acoustic erle threshold ......................................................18 afnse - acoustic full-duplex noise threshold.................................18 thdet - transmit half-duplex detection threshold ..........................18 tsatt - transmit suppression attenuation.........................................19 tsbias - transmit suppression bias .................................................19 tsthd - transmit suppression threshold .........................................19 hhold - hold in half-duplex on howl.................................................19 reset ...............................................................................................................19 clocking ..................................................................................................................19 power supply .........................................................................................................20 power down mode ..........................................................................................20 noise and grounding ......................................................................................21 design considerations ...................................................................................................22 algorithmic considerations .....................................................................................22 full-duplex mode ............................................................................................22 theory of operation ..................................................................................22 adaptive filter ...........................................................................................23 pre-emphasis ....................................................................................23 graded beta.......................................................................................23 update control ..........................................................................................24
cs6420 ds205pp2 3 speech detection ..................................................................................... 24 half-duplex mode ........................................................................................... 24 agc ................................................................................................................ 25 suppression .................................................................................................... 25 transmit suppression............................................................................... 26 receive suppression ................................................................................ 27 circuit design ......................................................................................................... 27 interface considerations ................................................................................. 27 analog interface........................................................................................ 27 microcontroller interface ........................................................................... 27 grounding considerations .............................................................................. 28 layout considerations .................................................................................... 28 system design ....................................................................................................... 28 gain structure ................................................................................................. 28 testing issues ................................................................................................. 29 erle ........................................................................................................ 29 convergence time ................................................................................... 30 half-duplex switching............................................................................... 30 pin descriptions .............................................................................................................. 31 analog interface .............................................................................................. 31 microcontroller interface ................................................................................. 32 clock ............................................................................................................... 32 power supply .................................................................................................. 32 miscellaneous ................................................................................................. 33 glossary ...................................................................................................................... ..... 34 package dimensions ...................................................................................................... 37
cs6420 4 ds205pp2 warning: operation beyond these limits may result in permanent damage to the device. normal operation is not guaranteed at these extremes. notes: 1. ao and no outputs are not loaded. notes: 2. these parameters are guaranteed by design or by characterization. absolute maximum ratings parameter symbol min max units dc supply (avdd, dvdd) -0.3 6.0 v input current (except supply pins) i in -10 +10 ma input voltage analog digital v ina v ind -0.3 -0.3 avdd+0.3 dvdd+0.3 v ambient operating temperature t a -40 85 c storage temperature t stg -65 150 c recommended operating conditions parameter symbol min typ max units dc supply (avdd, dvdd) 4.5 5.0 5.5 v ambient operating temperature t aop 0 2570c power consumption (t a = 25c, dvdd = avdd = 5v, f xtal = 20.480 mhz) (note 1) parameter symbol min typ max units power supply current, analog (rst =0) p da0 1ma power supply current, analog (rst =1) p da 10 20 ma power supply current, digital (rst =0) p dd0 1ma power supply current, digital (rst =1) p dd 50 60 ma analog characteristics (t a = 25c, dvdd = avdd = 5v, f xtal = 20.480 mhz) parameter symbol min typ max units input offset voltage (apo, ni) 2.12 v output offset voltage (ao, no) 2.12 v transmit group delay (note 2) 6 ms receive group delay (note 2) 6 ms settling time from rst rising 104 ms mb output voltage 3.5 v mb drive capability 10 m a input impedance (apo, ni) (note 2) z in 300 k w load impedance (ao, no) (note 2) z load 10 k w power supply rejection (1 khz) 40 db
cs6420 ds205pp2 5 analog transmission characteristics (t a = 25c, dvdd = avdd = 5v, f xtal = 20.480 mhz, rvol=tvol=rgain=tgain= 0 db, hd=tsd=rsd=1, analog inputs and ouputs loaded with resistors and capacitors as shown in the typical connection diagram, figure 2) parameter symbol min typ max units idle channel noise a-weighted (0-20 khz) (inputs grounded c-message weighted (0-4 khz) through a capacitor) psophometrically weighted (0-4 khz) 17 -67 -69 dbv dbrnc0 dbm0p signal-to-noise ratio a-weighted (0-20 khz) (full scale, 1 khz c-message weighted (0-4 khz) sine wave input) psophometrically weighted (0-4 khz) snr 69 17 -67 db dbrnc0 dbm0p total harmonic distortion c-message weighted (0-4 khz) thd 0.1 % programmable gain rgain/tgain = 00 rgain/tgain = 01 rgain/tgain = 10 rgain/tgain = 11 0 6 9.5 12 db volume control stepsize (tvol/rvol) 3 db adc full-scale voltage input 0.9 1.0 vrms dac full-scale voltage output 1.0 1.1 vrms adc noise floor c-message weighted (0-4 khz) -80 dbv dac noise floor, dac muted c-message weighted (0-4 khz) -85 dbv microphone amplifier (t a = 25c, dvdd = avdd = 5v,f xtal = 20.480 mhz) parameter symbol min typ max units gain (zsource = 50 w ) a mic 34 db signal-to-noise ratio a-weighted (0-20 khz) snr m 63 db input impedance z inm 5k w input offset voltage v offm 2.12 v digital characteristics (t a = 25c, dvdd = avdd = 5v,f xtal = 20.480 mhz) parameter symbol min typ max units high-level input voltage v ih dvdd-1.0 v low-level input voltage v il 1.0 v input leakage current i leak 10 m a input capacitance c in 5pf
cs6420 6 ds205pp2 switching characteristics parameter symbol min typ max units input rise time t rise 1.0 s rst low time t rstl 1.0 s clki frequency f xtal 18.432 20.480 22.528 mhz clki duty cycle t lclki 40 50 60 % drdy frequency f drdy dc f xtal / 2560 khz strobe frequency f strobe dc 9.0 mhz drdy to strobe setup time t sdrdy 30 ns data to strobe setup time t sdata 30 ns strobe to data hold time t hdata 30 ns strobe to drdy hold time t hdrdy 30 ns bit15 data drdy strobe bit14 bit0 t sdrdy t sdata t hdata t hdrdy figure 1. microcontroller interface switching characteristics
cs6420 ds205pp2 7 avdd agnd api apo mb ao clko clki strobe data drdy ni no dgnd dvdd 0.1 m f 1 m f + 0.1 m f 1 m f + 0.47 m f 10 m f 22pf telephone line out telephone line in from microprocessor 22pf +5v analog 0.022 m f 0.1 m f + rst nc1 nc2 nc3 nc4 1 2 20 18 19 3 3300pf 12.1 k w 13 14 9 10 11 12 20.480 mhz 8 6 5 7 3300 pf 6.04 k w 0.47 m f 3300 pf 12.1 k w 17 4 15 16 ferrite bead 1.5 k w +5v analog 10 k w figure 2. typical connection diagram (microphone preamplifier enabled) avdd agnd api apo mb ao clko clki strobe data drdy ni no dgnd dvdd 0.1 m f 1 m f + 0.1 m f 1 m f + 0.47 m f 10 m f 22pf telephone line out telephone line in from microprocessor 22pf +5v analog 0.1 m f + rst nc1 nc2 nc3 nc4 1 2 20 18 19 3 3300pf 12.1 k w 13 14 9 10 11 12 20.480 mhz 8 6 5 7 3300 pf 6.04 k w 0.47 m f 3300 pf 12.1 k w 17 4 15 16 ferrite bead 3300 pf 0.47 m f near-end input 6.04 k w figure 3. typical connection diagram (microphone preamplifier disabled)
cs6420 8 ds205pp2 overview the cs6420 is a full-duplex speakerphone chip for use in hands-free communications with telephony quality audio. common applications include speakerphones, inexpensive video-conferencing, and cellular phone car kits. the cs6420 requires very few external components and allows system control through a microcontroller interface. hands-free communication through a microphone and speaker typically results in acoustic feedback or howling because the loop gain of the system ex- ceeds unity by the time audio amplitudes are ad- justed to a reasonable level. the solution to the howling problem has typically been half-duplex, where either the transmit or the receive channel is active, never both at the same time. this prevents the howling, but diminishes the overall communi- cation quality by clipping words and forcing the talker at each end to wait for the talker at the other end to stop speaking. full-duplex conversation, where both transmit and receive channels are active simultaneously, is the conversation quality we enjoy when using hand- sets. full-duplex for hands-free communications is achieved in the cs6420 using a digital signal pro- cessing technique called echo cancellation. the end result is a more natural conversation than half- duplex, with no awkward breaks and pauses, as if both parties were speaking to each other directly. echo cancellation reduces overall loop gain and the acoustic coupling between speaker and micro- phone. this coupling reduction prevents the annoy- ing effect of hearing ones own delayed speech, the effect being worse when there is delay in the sys- tem, such as vocoder delay in digital cellular phones. the cs6420 is a complete system implementation of a digital signal processor with ram and pro- gram rom, running echo cancellation algorithms developed at crystal semiconductor using custom- er input, integrated with two delta-sigma codecs. the cs6420 is intended to provide a full-duplex speakerphone solution with a minimum of design effort while displacing existing half-duplex speak- erphone chips. functional description the cs6420 is roughly divided into four external interface blocks. the analog interfaces connect the chip to the transmit and receive paths. certain con- trol functions are accessible through the microcon- troller interface. two pins accommodate either a crystal or an externally applied digital clock signal. analog and digital power and ground are provided through four pins. analog interface in a speakerphone application, one input of the cs6420 connects to the signal from the micro- phone, sometimes called the near-end input or transmit input, and one output connects to the speaker. the output that leads to the speaker is sometimes called the near-end output or receive output. together, the input and output that connect to the microphone and speaker are referred to as the acoustic interface. the signal received at the near-end input is then passed to the far-end output or transmit output after acoustic echo cancellation. this signal is sent to the telephone line. the signal from the telephone line is received at the far-end input, also called the re- ceive input, and this signal is passed to the receive output after network echo cancellation. together, the far-end input and output form the network in- terface. the analog interfaces are physically implemented using delta sigma converters running at an output word rate of 8 khz, resulting in a passband from dc to 4 khz. because the inputs are analog to dig- ital converters (adcs), certain design consider- ations must be kept in mind: specifically, anti- aliasing and full-scale input voltage. the adcs ex- pect a single-pole rc filter with a corner at 8 khz,
cs6420 ds205pp2 9 and they are post-compensated internally to pre- vent any resultant passband droop. the adcs also expect a maximum of 1 v rms (2.8 v pp ) at their in- puts (which are biased around 2.12 vdc). a signal of higher amplitude will clip the adc input and may result in poor echo canceller performance. see the design considerations section for more details. the outputs are delta-sigma digital to analog con- verters (dacs) and have similar requirements to the adcs. the dacs are pre-compensated to ex- pect a single-pole rc filter with a corner frequency at 4 khz. the full scale voltage output from a dac is 1 v rms (2.8 v pp ) swinging around a dc bias of 2.12 v. acoustic interface the pins api (pin 20), apo (pin 18), mb (pin 19), and ao (pin 3) make up the acoustic interface. a block diagram of the acoustic interface is shown in figure 4. api and apo are, respectively, the input and out- put of the built-in analog pre-amplifier. the pre- amplifier is an inverting amplifier with a fixed gain of 34 db biased around an input offset voltage (v off ) of 2.12 v. apo is the output of the pre-am- plifier after a 1 k w resistor. the circuitry connected to the amplifier input must present low source im- pedance (<100 w ) to the api pin or the gain will be reduced. when using the pre-amplifier, connecting a 0.022 m f capacitor to ground off apo will pro- vide the anti-aliasing filter required by the adc, as shown in figure 2. the pre-amplifier may be by- passed by clearing mic (register 0, bit 15) using the microcontroller interface (see microcontroller in- terface section), grounding api through a capacitor, and driving apo directly. in this case, the signal into apo must be low-pass filtered by a single-pole rc filter with a corner frequency at 8 khz (see figure 3). following the pre-amplifier is a programmable an- alog gain stage (pga) which is controllable through the microcontroller interface. this gain 19 mb 18 apo 20 ao 0,6,9.5,12 db adc dac dac adc d s p ni 17 no 4 far-end transmit path receive path api 3.5v 2.12v 1k w bandgap 34 db 0,6,9.5,12 db near-end 3 pga pga figure 4. analog interface
cs6420 10 ds205pp2 stage allows gains of 0 db, 6 db, 9.5 db, and 12 db to be added prior to the adc input. the default gain stage setting is 0 db. the signal at apo should not exceed 2.8 v pp at the default gain stage setting. if other gain stages are used then the full-scale signal at apo must also change. table 1 shows full-scale voltages as mea- sured at apo for given programmable gains: table 1. full scale voltages for each gain stage. mb provides a stable 3.5 vdc output from the on- board voltage reference of the cs6420. mb may not be connected to any load. mb serves to provide decoupling for the internal 2.12 vdc bandgap ref- erence, and must have a 0.1 m f and a 10 m f capac- itor to ground for bypass. noise on mb will strongly influence the overall analog perfor- mance of the cs6420. the acoustic output, ao, should connect to a sin- gle-pole low-pass rc network with a corner fre- quency of 4 khz, which will filter out-of-band components. the maximum voltage swing at ao is 2.8 v pp . ao is capable of driving down to a 10 k w load. network interface the pins ni (pin 17) and no (pin 4) make up the network interface. the details of the network in- terface are shown in figure 4. ni is the input from the telephone network side into the cs6420. the signal into ni must be low pass filtered by a single-pole rc filter with a corner fre- quency of 8 khz. a programmable analog gain stage (pga) accessi- ble through the microcontroller interface amplifies signals received at ni. this gain stage allows gains of 0 db, 6 db, 9.5 db, and 12 db to be added prior to the adc input. the default gain stage setting for the network side is 0 db. the signal at ni should not exceed 2.8 v pp at the default gain stage setting. if other gain stages are used then the full-scale signal at ni must also change. table 1 shows full-scale voltages as mea- sured at ni for given programmable gains. the output to the telephone network side, no, should connect to a single pole rc network with a corner frequency at 4 khz, which will filter out-of- band components. the maximum swing no is ca- pable of producing is 2.8 v pp . no is capable of driving down to a 10 k w load. microcontroller interface several control functions of the cs6420 are acces- sible through its microcontroller interface, which consists of three pins: data (pin 8), strobe (pin 7), and drdy (pin 6). these inputs are intend- ed to connect to the outputs of a microcontroller to allow write-only access to the 16-bit microcontrol- ler control register (mcr). the rst (pin 5) pin, which affects the entire inte- grated circuit, is especially significant to the micro- controller interface. rst is used to place the cs6420 into a known state of operation. two sub- types of reset are possible: cold reset and warm re- set. description the microcontroller interface is implemented by a serial shift register gated by drdy . the microcon- troller begins the transaction by setting drdy low and strobe low. the most significant bit (msb), bit 15, of the 16-bit data word should be presented to the data pin and then strobe should be brought high to shift the data bit into the cs6420. strobe should be brought low again so it is ready gain setting full-scale voltage 0 db 2.8 v pp 6 db 1.4 v pp 9.5 db 0.94 v pp 12 db 0.71 v pp
cs6420 ds205pp2 11 to shift the next bit into the shift register. the next data bit should then be presented to the data pin ready to be latched by the rising edge of strobe. this procedure repeats for all sixteen bits as shown in figure 5. after the last bit has been shifted in, drdy should be brought high to indicate the con- clusion of the transfer, and four extra strobe pulses must be applied to latch the data into the cs6420. since the mcr is a shift register, the strobe can be run arbitrarily slow with a duty cycle limited only by the hold time specified in the switching characterstics table. the microcontroller interface is read once every 125 m s, so it must not be updated faster than this. register definitions the four control registers accessible through the mcr are described in detail in the following tables. these registers are addressed by bits b2 and b1 of the mcr. bit b0 must always be 0. table 2 shows the relative bit positions of all the registers. tables 3 to 6 show the four control registers in more detail. the register map at the top of each register de- scription shows the names of all the bits, with their reset values below the bitfield name. the reset val- ue can also be found in the word column of the bit- field summary as indicated by an *. table 2. mcr control register mapping b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 mic tsd gb acc rvol tgain 0 0 0 hd rsd taps ncc tvol rgain 0 1 0 nerle nfnse rhdet hdly nsermp rsthd pcsen 1 0 0 aerle afnse thdet tsatt tsbias tsthd hhold 1 1 0 bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 data drdy strobe 1234 four extra strobe pulses figure 5. microcontroller interface
cs6420 12 ds205pp2 register 0 * denotes reset value table 3. register 0 bit definitions mic - microphone preamplifier enable the microphone preamplifier described in the acoustic interface section is enabled by default, but may be disabled by setting mic to 0. refer to the acoustic interface section for more details on us- ing/disabling the microphone preamplifier. tsd - transmit suppression disable the transmit supplementary echo suppression function is a non-linear echo control mechanism. the transmit suppression will introduce tsatt (see register 3) db of attenuation into the transmit path only when there is speech detected in the re- ceive path and no near-end speech. when only near-end speech is present, or if there is no speech in either direction, the suppression attenuation is removed. by default, the transmit suppression function is enabled. gb - graded beta the room-size adjustment scheme called graded beta, provided for the acoustic echo canceller in the b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 mic tsd gb acc rvol tgain 0 0 0 1 0 10 00 00100 00 0 0 0 bits name function word operation 15 mic microphone preamplifier enable 0 1* disable preamp enable preamp 14 tsd tx suppression disable 0* 1 enable tx suppression disable tx suppression 13-12 gb graded beta 00 01 10* 11 0.00 db/ms 0.75 db/ms 0.38 db/ms 0.19 db/ms 11-10 acc aec coefficient control 00* 01 10 11 normal clear freeze reserved 9-5 rvol rx volume control 00000 00001 --- 00100* --- 01010 01011 --- 11101 11110 11111 +30 db +27 db +18 db +0 db -3 db -57 db -60 db mute 4-3 tgain tx analog gain 00* 01 10 11 0 db 6 db 9.5 db 12 db
cs6420 ds205pp2 13 cs6420, is controlled by gb. the network echo canceller does not support graded beta. graded beta is an architectural enhancement to the cs6420 which takes advantage of the fact that acoustic echoes tend to decay exponentially with time. the cs6420 can increase the beta, or update gain, for the coefficients of the adaptive filter which occur earlier in time and decrease it for those that occur later in time, which increases conver- gence speed while maintaining stability. in order to make this improvement, there is an implicit assump- tion that the decay rate of the echo is known. the graded beta control allows the system designer to ad- just this. for very acoustically live rooms, use either no decay (00) or slight decay (11). cars and acousti- cally dead rooms can benefit from the most rapid de- cay (01). acc - acoustic coefficient control the coefficients of the aec adaptive filters in the cs6420 are controlled by acc. the default posi- tion (00) yields normal operation, which means the coefficients are free to adjust themselves to the echo path in order to cancel echo. when set to the clear position (01), the adaptive filter coefficients are all held at zero, so the echo canceller is effec- tively disabled. note that unless the half-duplex mode is disabled, this will force the cs6420 into half-duplex mode. the freeze position (10) causes the coefficients to hold their current values. rvol - receive volume control volume in the receive path is set by rvol. the vol- ume control in the receive direction is implemented by a peak-limiting automatic gain control (agc) and digital attenuation at the near-end output dac. the agc is discussed in detail in the design con- siderations section. see the sub-section on agc for a full explanation of how it functions. when the reference level is set to +0 db, the agc is effectively disabled. volume control is imple- mented by digital attenuation in 3 db steps from this point on down. the maximum gain is +30 db and the minimum is -60 db in 3 db steps. the low- est gain setting (11111) mutes the receive path. the default setting for the receive reference level is +18 db. tgain - transmit analog gain tgain selects the amount of additional on-chip an- alog gain to be supplied to the acoustic input of the cs6420. a programmable gain amplifier (pga) exists before each adc which allows 0 db, 6 db, 9.5 db, or 12 db of gain to be added to the signal path. the acoustic side defaults to 0 db of gain. note: changing the analog gain will change the full- scale voltage as applied to the input pin. make sure that the adc input does not clip with the gain stage on.
cs6420 14 ds205pp2 register 1 * denotes reset value table 4. register 1 bit definitions hd - half-duplex disable in normal operation, the cs6420 will be in a half- duplex mode if the echo canceller is not providing enough loop gain reduction to prevent howling. this half-duplex mode would be active at power- up, for example, before the adaptive filter has had a chance to adapt. this half-duplex mode prevents howling and also masks the convergence process. in some cases, such as when measuring conver- gence speed (see testing issues ), the half-duplex mode is undesirable. by default, the half-duplex mode is enabled. rsd - receive suppression disable the receive supplementary echo suppression function is a non-linear echo control mechanism. supplementary echo suppression attenuates sig- nals in the receive direction by 24 db when far-end speech is absent in the receive path. the attenua- tion is released only when the receive channel is ac- tive. it is also designed to not be triggered by b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 hd rsd taps ncc tvol rgain 0 1 0 0 0 10 00 01010 00 0 1 0 bits name function word operation 15 hd half-duplex disable 0* 1 enable half-duplex disable half-duplex 14 rsd rx suppression disable 0* 1 enable rx suppression disable rx suppression 13-12 taps aec/nec tap allocation 00 01 10* 11 444/0 (55.5ms/disabled) 380/128 (47.5ms/16ms) 316/192 (39.5ms/24ms) 252/256 (31.5ms/32ms) 11-10 ncc nec coefficient control 00* 01 10 11 normal clear freeze reserved 9-5 tvol tx volume control 00000 00001 --- 00100 --- 01010* 01011 --- 11101 11110 11111 +30 db +27 db +18 db +0 db -3 db -57 db -60 db mute 4-3 rgain rx analog gain 00* 01 10 11 0 db 6 db 9.5 db 12 db
cs6420 ds205pp2 15 network echo. by default, the receive suppression function is enabled. taps - aec/nec tap allocation the cs6420 has a total of 63.5 ms of echo canceller taps that it can partition for use by the network and acoustic echo cancellers. by default, the cs6420 allocates 39.5 ms for the aec and 24 ms for the nec. some applications will never have a network echo path, and so should allocate all taps for the aec. see nerle and nfnse in register 2, and aerle and afnse in register 3 for more options when an echo path is nonexistent. ncc - network coefficient control the nec adaptive filters coefficients are con- trolled by ncc. see acc in register 0 for more details. the default setting for ncc is normal mode. tvol - transmit volume control volume in the transmit path is controlled by tvol. like receive volume, the transmit volume is con- trolled by an agc. see rvol in register 0 for more details. the default setting for the transmit refer- ence level is +0 db. rgain - receive analog gain rgain selects the amount of additional on-chip an- alog gain to be supplied to the network input of the cs6420. a programmable gain amplifier (pga) exists before each adc which allows 0 db, 6 db, 9.5 db, or 12 db of gain to be added to the signal path. the network side defaults to 0 db of gain. note: changing the analog gain will change the full- scale voltage as applied to the input pin. make sure that the adc input does not clip with the gain stage on.
cs6420 16 ds205pp2 register 2 * denotes reset value table 5. register 2 bit definitions nerle - network erle threshold the cs6420 will allow full-duplex operation only when the network erle exceeds the threshold set by nerle. see also nfnse. see glossary for a def- inition of erle. nfnse - network full-duplex noise threshold nfnse works in conjunction with nerle to deter- mine when the cs6420 should transition into full- duplex operation. if the current noise level at the far-end input is greater than nfnse, then nerle is used to determine if full-duplex is allowed. if the noise level is below the level of nfnse, the cs6420 uses an internal estimate of asymptotic performance to determine whether or not to transi- tion to full-duplex. if nfnse is zero, nerle is al- ways used as the full-duplex criterion. the other values exist for cases where there is not a network path to converge to, or the existence of a network path can not be determined prior to placing a call. b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 nerle nfnse rhdet hdly nsermp rsthd pcsen 1 0 0 00 00 00 00 00 00 0 1 0 0 bits name function word operation 15-14 nerle nec erle threshold 00* 01 10 11 24 db 18 db 30 db reserved 13-12 nfnse nec full-duplex noise threshold 00* 01 10 11 zero -42 db -54 db reserved 11-10 rhdet rx half-duplex detection threshold 00* 01 10 11 5 db 3 db 6 db reserved 9-8 hdly half-duplex holdover delay 00* 01 10 11 200 ms 100 ms 150 ms reserved 7-6 nsermp background power estimator ramp rate 00* 01 10 11 1 s 0.5 s 2 s reserved 5-4 rsthd rx suppression threshold 00* 01 10 11 5 db 3 db 6 db reserved 3 pcsen path change sensitivity 0* 1 high sensitivity low sensitivity
cs6420 ds205pp2 17 rhdet - receive half-duplex detection threshold the sensitivity of the speech detector controls channel switching and ownership in half-duplex mode. the receive speech detector registers speech if the receive channel signal power is rhdet above the noise floor for the receive channel. hdly - half-duplex holdover delay after a channel goes idle in the half-duplex mode of operation, a change of channel ownership is in- hibited for hdly in order to prevent false switching due to echoes. the half-duplex will be more im- mune to false switching if this delay is longer, but it will also prevent a fast response to legitimate channel changes. nsermp - background noise power estimator ramp rate the background noise power estimators increase at a rate of 3 db/nsermp until the background noise power estimate equals the current input power esti- mate. the background noise power estimators quickly track drops in the current input power esti- mate. choose small values of nsermp if the envi- ronment is expected to have rapidly varying noise levels. choose large values of nsermp if the envi- ronment is expected to have relatively constant noise power. rsthd - receive suppression threshold this parameter sets the threshold for far-end speech detection for disengaging receive suppres- sion. the speech detector that disengages the re- ceive suppression has its sensitivity controlled by rsthd. the suppression is inserted into the receive path unless signal from the far-end exceeds the re- ceive channel noise power by rsthd, in which case speech is assumed to be detected and the sup- pression is defeated until speech is no longer de- tected. decreasing rsthd to make the speech detector more sensitive could result in false detec- tions due to spurious noise events which may cause an unpleasant noise modulation at the near-end. in- creasing rsthd to make it robust to spurious noise, but may cause weak far-end talkers to not be heard. rsthd does not affect the ability of the receive suppressor to attenuate residual network echo. pcsen- path change sensitivity the acoustic interface is likely to have many path changes, for example, as people move about in the room where the full-duplex speakerphone is being used. the sensitivity of the path change detector can be changed with the pcsen bit. set pcsen to 0 for high sensitivity and 1 for low sensitivity. if pcsen is set to high, extended doubletalk may cause the cs6420 to briefly drop into half-duplex. when pcsen is set to low, brief echo may be heard during path changes.
cs6420 18 ds205pp2 register 3 * denotes reset value table 6. register 3 bit definitions aerle - acoustic erle threshold the cs6420 will allow full-duplex operation only when the acoustic erle it provides exceeds aer- le. see also afnse. see glossary for a definition of erle. afnse - acoustic full-duplex noise threshold afnse works in conjunction with aerle to deter- mine when the cs6420 should transition into full- duplex operation. if the current noise level at the near-end input is greater than afnse, then aerle is used to determine if full-duplex is allowed. if the noise level is below the level of afnse, the cs6420 uses an internal estimate of asymptotic performance to determine whether or not to transi- tion to full-duplex. if afnse is zero, aerle is al- ways used as the full-duplex criterion. the other values exist for cases where there may not be an acoustic path to converge to. thdet - transmit half-duplex detection b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 aerle afnse thdet tsatt tsbias tsthd hhold 1 1 0 00 00 00 00 00 00 0 1 1 0 bits name function word operation 15-14 aerle aec erle threshold 00* 01 10 11 24 db 18 db 30 db reserved 13-12 afnse aec full-duplex noise threshold 00* 01 10 11 zero -42 db -54 db reserved 11-10 thdet tx half-duplex detection threshold 00* 01 10 11 5 db 3 db 6 db reserved 9-8 tsatt tx suppression attenuation 00* 01 10 11 18 db 12 db 24 db reserved 7-6 tsbias tx suppression bias 00* 01 10 11 18 db 15 db 21 db reserved 5-4 tsthd tx suppression threshold 00* 01 10 11 15 db 12 db 9 db reserved 3 hhold hold in half-duplex on howl 0* 1 disable enable
cs6420 ds205pp2 19 threshold the sensitivity of the speech detector controls channel switching and ownership in half-duplex mode. the transmit speech detector registers speech if the transmit channel signal power is th- det above the noise floor of the transmit channel. tsatt - transmit suppression attenuation this parameter sets the amount of suppression at- tenuation inserted into the transmit path when transmit suppression is engaged. tsbias - transmit suppression bias the bias level affects the ease with which near-end speech may break-in or be crushed by far-end speech. see the design considerations section on transmit suppression for full details. tsthd - transmit suppression threshold this parameter sets the erle requirement for dis- crimination between echo and near-end speech by the supplementary echo suppressor. see the de- sign considerations section on transmit suppres- sion for full details. hhold - hold in half-duplex on howl this is a control flag which, if enabled, holds the system in the half-duplex operation if it were to howl for any reason and the howl detectors trip and clear coefficients. the system may transition to full-duplex if the flag is subsequently cleared. reset a hardware reset, achieved by bringing rst low for at least 1 s and then high again, must be ap- plied after initial power-on. when rst is held low, the various internal blocks of the cs6420 are powered down. when rst is brought high, the oscillator is enabled and approx- imately 4 ms later, all digital clocks begin operat- ing. the adcs and dacs are calibrated and all internal digital initializations occur. the mcr is sampled after the reset timer expires (104 ms after the rise of rst or sooner if using the early exit de- scribed below) to determine whether the reset was warm or cold. after the mcr is initially sampled, the default (reset) values of the mcr are restored to it. cold reset is a total reset of all the components of the cs6420. the adcs and dacs are reset, the echo canceller memories and registers are all cleared, and the default settings of the mcr are re- stored. cold reset is the default reset mode upon power up or in the absence of a microcontroller. warm reset is like cold reset except that the echo canceller coefficients and certain key variables are not cleared, but instead keep their pre-reset value. this gives the cs6420 a headstart in adapting to its environment if the echo environment is relatively stable, assuming a cold reset happened at least once since power up. the cs6420 is warm reset by raising the rst pin high, waiting 4 ms for the digital clocks to start, and then writing 0111111111111110 (0x7ffe) to the mcr within 104 ms after rst goes high. if no control word is sent, the cs6420 will cold reset. if the control word is sent after the timer has expired, it is interpreted as a normal control word. another special reset option is to exit the 100 ms reset timer before the 100 ms has elapsed. this is accomplished by writing a control word to the mcr with bit 15 set high. to exit the timer early in cold reset, write 1000000000000 (0x8000). the timer may be bypassed and warm reset asserted by sending 1111111111111110 (0xfffe). the 100 ms timer prevents operation until the bias volt- ages generated on-chip settle, but the startup delay might be objectionable in some applications. clocking the clock for the converters and dsp is provided via the clocking pins, clki (pin 14) and clko (pin 13). a 20.480 mhz parallel resonant crystal
cs6420 20 ds205pp2 placed between these two pins and loaded with 22 pf capacitors will allow the on-chip oscillator to provide this system clock. alternatively, the clki pin may be driven by a cmos level clock signal. the clock may vary from 20.480 mhz by up to 10%, however, this will change the sampling rate of the converters and echo canceller, which will af- fect the bandwidth of the analog signals and the du- ration of echo that the echo canceller can accommodate. clko is not connected when clki is driven by the cmos signal. power supply the pins avdd (pin 1) and agnd (pin 2) power the analog sections of the cs6420, and dvdd (pin 16) and dgnd (pin 15) power the digital sections. this distinction is important because internal to the part, the digital power supply is likely to contain high-frequency energy. the analog power supply is kept clean internally by drawing current from a dif- ferent pin, thereby achieving high performance in the converters. the digital supply of the cs6420 should not be connected to the system digital supply, if there is one, as the cs6420 has internal timing mechanisms designed to minimize the detrimental effects of its own digital noise, but cannot use these to compen- sate for externally introduced digital noise. the cs6420 digital power supply should be derived from its analog power supply through a ferrite bead with low (< 1 w ) dc impedance . power down mode typical power consumption of the cs6420 is 60 ma, assuming normal operating conditions. this current consumption can be further reduced by in- voking the powerdown mode, which is entered by holding rst low. holding rst low will power down all the internal blocks of the cs6420 and stop the oscillator. in powerdown mode, current con- sumption drops to less than 1 ma. agnd dvdd mb avdd +5v analog supply dgnd from ferrite bead figure 6. suggested layout
cs6420 ds205pp2 21 noise and grounding since the cs6420 is a mixed-signal integrated cir- cuit, the system designer must pay special attention to layout and decoupling to minimize noise con- cerns. the three best methods to reduce noise when using the cs6420 are to have good decoupling of power supplies, separation of analog and digital power and ground, and careful board layout. figure 6 shows the suggested placement of decou- pling capacitors for the power supplies. note that the trace length from the power pin to the capaci- tors is minimized. also note that the smaller valued capacitor is placed closer to the pin than the larger valued capacitor. the smaller capacitor decouples high frequency noise and the larger capacitor atten- uates lower frequencies. the separation of analog and digital power and ground is done in two ways. the power is separated by deriving the digital power for the cs6420 from the analog through a ferrite bead to isolate analog from digital, as shown in figure 7. the ferrite bead serves as a low-pass filter to remove cs6420 digi- tal switching noise from the analog power supply. the ground is separated by isolating all the digital components of the system board on one ground plane and all the analog and linear components on a different ground plane. the cs6420 should be placed over the analog ground plane. this prevents digital switching noise from the digital components of the board from coupling into the converters and aliasing into the passband. +5v (analog) avdd agnd dvdd dgnd analog ground plane digital ground plane microcontroller 1 m f0.1 m f0.1 m f1 m f ferrite bead figure 7. ground planes
cs6420 22 ds205pp2 design considerations when designing the cs6420 into a system, it is im- portant to keep several considerations in mind. these concerns can be loosely grouped into three categories: algorithmic considerations, circuit de- sign considerations, and system design consider- ations. algorithmic considerations the cs6420 facilitates full-duplex hands-free communication via many algorithms running on the digital signal processor that is the core of the cs6420. among these are the algorithms that per- form the adaptive filtering, the half-duplex switch- ing, digital volume control, and supplementary echo suppression. full-duplex mode full-duplex hands-free communication is achieved through a technique called adaptive filtering. the basic principle behind adaptive filtering is that the acoustic path between speaker and microphone can be modeled by a transfer function which can be dy- namically determined by an adaptive digital filter. this principle assumes good update control and speech/tone detection algorithms to prevent the fil- ter from mistraining. theory of operation figure 8 illustrates how the adaptive filter can can- cel echo and reduce loop gain. the echo path of the system is between points b and c: the speaker to microphone coupling. a signal injected at a (sometimes called a training signal) is sent both to b, the input of the echo path, and to f, the input of the adaptive filter. the signal at b is modified by the transducers and the environment, and received at point c (an echo). meanwhile, let us assume for arguments sake that the adaptive filter has ex- actly the right transfer function to match the echo path bc, and so the signal at point d is approxi- mately equal to the signal at point c. after these are subtracted by the summing element, all that is left is the error signal at point e, which should be very small. if a person were to speak into the microphone at point c, that signal would pass through the sum- ming element unchanged because the adaptive fil- ter had no comparable input to subtract out. in this manner, the person at a and the person at c may si- multaneously speak and a will not hear his own echo. in the real world, the echo path is not static. it will change, for example, when people move in the room, when someone moves the speaker or the mi- crophone, or when someone drops a piece of paper on top of the speaker. so, the filter needs to adapt to modify its transfer function to match that of the environment. it does so by measuring the error sig- nal at point e and trying to minimize it. this signal is fed back to the adaptive filter to measure perfor- mance and how best to adapt, or train. the trouble arises when the person at the near-end (c) speaks: the error signal will be non-zero, but the adaptive filter should not change. if it tries to train to the near-end signal, the adaptive filter has no way to reduce the error signal, because there is no input to the filter, and therefore no output from it. the adaptive filter would mistrain. to prevent this mistraining, the echo canceller uses double-talk detection algorithms to determine when to update. these update control algorithms s adaptive filter a e d b c + - f figure 8. simplified acoustic echo canceller block diagram
cs6420 ds205pp2 23 are the heart of most echo canceller implementa- tions. the worst case situation for the cs6420 is when parties at both ends are speaking and the person at the near-end is moving. in this case, the echo can- celler will cease to adapt because of the double- talk, but the echo will not be optimally reduced be- cause of the change in path. adaptive filter the adaptive filter in the cs6420 uses an algorithm called the normalized least-mean-square (nlms) update algorithm to learn the echo path transfer function. this finite impulse response (fir) filter has 508 taps, which can model up to 63.5ms of total path response at a sampling rate of 8khz. the coverage time is calculated by the fol- lowing formula: x 508 = 63.5 ms. the cs6420s adaptive filter, like all fir filters, only models linear and time invariant (lti) sys- tems. so, any non-linearity in the echo path can not be modeled by the adaptive filter and the resulting signals will not be cancelled. signal clipping and poor-quality speakers are very common sources of non-linearity and distortion. a common integration problem for echo cancellers is signal clipping in the echo path. for example, if a speaker driver is driven to its rails, the distortion of the speech may be hard to perceive, but it is very bad for the echo canceller. this technique has been used in half-duplex phones to provide good low- level signal gain at the expense of distortion with high amplitude signals. since this does not work for the cs6420, an agc mechanism has been in- troduced to provide equivalent behavior without clipping. see the section on agc for more details. another common problem is speaker quality. a poor quality speaker which is perfectly acceptable for a half-duplex speakerphone, may limit the echo cancellers performance in a full-duplex speaker- phone. the distortion elements will not be modeled by the adaptive filter and so limit its effectiveness. speakers should have better than 2% thd perfor- mance to not impede the adaptive filter. volume control should be implemented only using the cs6420 microcontroller interface. a real-time external change in the gain of the speaker driver, for example, would result in a change in the trans- fer function of the echo path, and so would force the adaptive filter to readapt. if the volume control is done before the input to the adaptive filter, the echo path does not change, and no retraining is nec- essary. another side benefit of the cs6420 volume control is that it transparently provides dynamic range compression. pre-emphasis the typical training signal for the adaptive filter will be speech, but most adaptive filters work opti- mally with white noise. speech has very different spectral characteristics than white noise because of its quasi-periodic nature. research at crystal has shown that quasi-periodic signals cause the formation of spurious non-zero coefficients within the adaptive filter at tap inter- vals determined by the periodicity of the signal. this results in small changes in period being very destructive to the adaptive filters performance. one mechanism the cs6420 uses to prevent this filter corruption with speech is to pre-emphasize the signal sent to the adaptive filter so that much of the low frequency content is removed. the cs6420 works very well with a speech training signal because of the pre-emphasis filter. white noise training signals, however, will result in sub- optimal performance, so when testing, white noise is not recommended as a training signal. graded beta the update gain of an adaptive filter, sometimes called the beta, is the rate at which the filter co- 1 8khz ------------ - ? ??
cs6420 24 ds205pp2 efficients can change. if beta is too low, the adap- tive filter will be slow to adapt. conversely, if it is too high, the filter will be unstable and will create unwanted noise in the system. in most echo canceller implementations, the beta is a fixed value for all the filter coefficients. in some situations, though, through knowledge of the char- acteristics of echo path response, the beta can be varied for groups of coefficients. this preserves stability by allowing the beta to be higher for some coefficients and compensating by reducing beta be- low nominal for others. for example, acoustic echo tends to decay expo- nentially, so the first taps need to be large and the later taps will be small. having a large beta for the first taps will allow those taps to be adapted faster, while having a small beta for the later taps will keep the filter stable. this has an added benefit of suppressing the spurious taps mentioned in the pre- emphasis filter section above. the microcontroller interface allows four settings for graded beta: none, 0.19 db/ms, 0.38 db/ms, and 0.75 db/ms. use 0.75 db/ms for acoustically dead rooms or cars, and 0.19 db/ms or no grading of beta for large, or acoustically live rooms. update control as mentioned in the theory of operation section, the update control algorithms are the heart of any useful echo canceller implementation. aside from telling the adaptive filter when to adapt, they are re- sponsible for correcting performance when the path changes too quickly for the filter. for example, if the adaptive filter is actually adding signal power instead of cancelling, the update control algorithms will reset the adaptive filter to cleared coefficients, forcing it to restart. speech detection the cs6420 detects speech by using power estima- tors to track deviations from a background noise power level. the power estimators filter and aver- age the raw incoming samples from the adc. a background noise level is established by a regis- ter that increases 3 db at intervals determined by nsermp (register 2, bits 7 and 6). when the power estimator level rises, the background noise level will slowly increase to try to match it. when the power estimator level is below the background noise level, the background noise level is quickly reset to match the power estimator level. this method allows significant flexibility in tracking the background noise level. speech is detected when the power estimator level rises above the background noise level by a given threshold. the half-duplex receive speech detector threshold is set by rhdet (register 2, bits 11 and 10), the half-duplex transmit speech detector threshold is set by thdet (register 3, bits 11 and 10), and the receive suppression speech detector threshold is set by rsthd (register 2, bits 5 and 4). the transmit speech detectors for both half-duplex and suppression default to 5 db. note that constant power signals which persist for long durations, such as tones from a signal genera- tor, will be detected as speech only as long as the background noise level has not risen to within the speech detection threshold of the signal power. when a tone has persisted for long enough, the background noise level will be equal to the power estimator level, and so the tone will no longer be considered speech. this duration is dependent upon the power difference between the signal and the ambient noise power, as well as nsermp. it should be noted that the cs6420 has a tone detector to prevent updates when tones are present and allow tones to persist regardless of the speech detectors. half-duplex mode in cases where the system relies on the echo cancel- ler for stability, a fail-safe mechanism must be in place for instances when the echo canceller is not
cs6420 ds205pp2 25 performing adequately. the cs6420 implements a half-duplex mode to guarantee communication even when the echo canceller is disabled. when the cs6420 is first powered on, or emerges from a reset, the echo canceller coefficients are cleared, and the echo cancellers provide no benefit at this point. the half-duplex mode is on to prevent howling and echo from interfering with communi- cation. once the cs6420s adaptive filters have adapted sufficiently, the half-duplex mode is auto- matically disabled, and full-duplex communication can occur. the half-duplex mode allows three states: transmit, receive, and idle. in the transmit state, the transmit channel is open and the receive channel is muted. the receive state mutes the transmit channel. the idle state is an internal state which is used to en- hance switching decision making. the cs6420 must be idle before it will allow a state change be- tween transmit and receive. the half-duplex controller can be susceptible to echo, so a holdover timer is provided to help pre- vent false switching. holdover will force the chan- nel to remain in its current state for a fixed duration after speech has stopped. hdly (register 2, bits 9 and 8) sets the duration of the holdover. longer holdover will tend to make interrupting much hard- er, but will be much more robust to spurious switching caused by echo. agc the cs6420 implements a peak-limiting agc in both the transmit and receive directions in order to boost low-level signals without compromising per- formance when high amplitude signals are present. the technique effectively results in dynamic range compression. the agc works by setting a reference level based on the value represented by tvol (register 1, bits 9-5) for the transmit direction and rvol (register 0, bits 9-5) for the receive direction. if the signal from the input is above this reference, it is attenu- ated to the reference level with an attack time of 125 m s. this attenuation level decays with a time constant of 30 ms unless another signal greater than the reference level is detected. after the attenua- tion, a post-scaler scales the reference level to full- scale (the maximum digital code), which amplifies all signals by the difference between the reference level and full-scale. for example, figure 9 shows how the agc works with a reference level of +30 db (word = 00000). any signal greater than 30 db below full-scale (a), is scaled down to 30 db (b). this signal is then scaled up +30 db (the reference level) to provide the final output (c). note that the combination of at- tenuation and gain results in less than +30 db total gain being applied. if the input signal is below 30 db below full-scale (d), no attenuation is done and the full +30 db of gain is applied to the signal (e). when the reference level is set to +0 db, the agc is effectively disabled. volume control is imple- mented by digital attenuation in 3 db steps from this point on down. the maximum gain is +30 db and the minimum is -60 db in 3 db steps. the low- est gain setting (11111) mutes the path. the signal scaling takes place in between the two cancellers, and so does not disturb the echo canceller as chang- ing gain in the echo path would (see the adaptive filter section for more details). suppression echo cancellation is somewhat of a misnomer in that echo is merely attenuated, not entirely can- celled. some residual echo still exists after the summing node. this residual echo, though very low, may be audible when the near-end talker is not speaking. suppression further attenuates the ech- oed signal. the cs6420 employs supplementary echo suppres- sion which adds attenuation on top of the cancella- tion to remove the residual echo. for example, the
cs6420 26 ds205pp2 transmit channel will engage extra attenuation whenever only the far-end talker is speaking. how- ever, if the near-end talker starts speaking, the at- tenuation is removed and the system relies on the near-end talkers speech to mask residual echo. suppression causes some modulation of the per- ceived background noise which may be distracting to some users. as a result, it may be desirable to limit the suppression attenuation to the minimum necessary. the cs6420 provides tsatt (register 3, bits 9 and 8) to control the amount of attenuation introduced by suppression in the transmit channel. receive suppression attenuates by 24 db. the suppression in the transmit suppression and that in the receive direction work very differently. the transmit suppression works in a default off mode while the receive suppression is default on. transmit suppression the transmit suppressor attenuates the transmit path when only far-end speech is present, hence the name default off. this ensures that the suppres- sion engages only when necessary. recall that the purpose of transmit suppression is to mask residual echo by inserting additional loss/attenuation in the transmit path in the scenario when only far-end speech is present; the residual echo, if any, in double-talk being masked by near- end speech assuming reasonable levels of erle. there are two controls/tweekable parameters for governing the behavior of transmit suppression. the two controls are adjustable through the micro- controller interface, and they are tsthd (register 3, bits 5 and 4) and tsbias (register 3, bits 7 and 6). tsthd is the primary control and should be ad- justed before changing the value of tsbias from its default setting. tsthd sets the erle expectation to be used in discriminating between near-end speech and far-end echo. this control setting will by far predominate in affecting the manner in which transmit suppression behaves. tsbias is a secondary control. this is to be adjust- ed after the system designer is more or less satisfied with the behavior of transmit suppression with the tsthd set. it affects the ease with which a near-end talker may disengage transmit suppression and -30db fs (a) input signal t -30db fs (c) agc gain t -30db fs (b) agc attenuation t -30db fs (d) input signal t -30db fs (e) agc gain t 0db 0db 0db 0db 0db figure 9. how agc works (tvol = 00000)
cs6420 ds205pp2 27 keep it disengaged. we recommend using larger values of tsbias relative to tsthd settings in or- der to facilitate ease of near-end speech transmis- sion. for example, the default setting for tsthd is 15 db and 18 db for tsbias. in some scenarios, especially when the dynamic range of volume control is significantly large, we also recommend the use of different combinations of tsthd and tsbias setting relative to output vol- ume of the acoustic interface. receive suppression the default on receive suppressor is nominally attenuating unless far-end speech is present. this behavior is more consistent with behavior observed in modern speakerphones, and helps keep noise levels low. one side effect of this scheme is that a constant power signal, such as noise from a noise generator or a tone, will eventually be attenuated when the background noise level estimate turns off the re- ceive suppression speech detector. see the section on speech detection from more details. rsthd (register 2, bits 5 and 4) sets the speech de- tection threshold of the suppressors speech detec- tor. see the speech detection section for more details. circuit design the design of the cs6420 interface circuitry plays an important role in achieving optimum perfor- mance. the actual circuit design is important, espe- cially the analog interface. proper grounding and layout will help minimize the noise that might get coupled into the cs6420. interface considerations of the cs6420 interfaces, the analog interface and the microcontroller interface are the most impor- tant to pay special attention to during circuit de- sign. the analog interface especially will determine how well the echo canceller can per- form. analog interface the analog interface feeds information about the echo path to the adaptive filter, so it is critical that this interface be well designed. using high-quality transducers and circuits that guarantee low-distor- tion and minimal clipping are essential to the suc- cess of any echo canceller based design. as mentioned in the adaptive filter section, the adaptive filter assumes that the echo path is linear and time-invariant. as such, poor quality speakers are a common cause of poor echo canceller perfor- mance due to their high distortion. speakers must be selected with their linearity in mind. in general, the speaker should have less than 2% total har- monic distortion. this will result in distortion terms 34 db below the desired signal, enough head- room for the echo canceller to function adequately. the other major consideration in the design of the analog interface is that the circuitry that processes the transducer signals not clip or distort it. for ex- ample, a common problem is the use of a speaker amplifier with a fixed gain, which clips when driv- ing the speaker. although the distortion may not be objectionable to the human ear, it will prevent the adaptive filter from modeling the path correctly. that which worked for half-duplex speakerphones will not necessarily work for full-duplex speaker- phones. microphone amplifier circuitry is also sus- pect when looking for sources of clipping and distortion. microcontroller interface the microcontroller interface is the only asynchro- nous digital connection to the cs6420, so it is the most likely place for digital noise coupling to be a problem. the interface itself is fairly straightfor- ward and requires only three pins from a microcon- troller.
cs6420 28 ds205pp2 the three pins that comprise the microcontroller interface are strobe, data, and drdy . strobe must not exceed the system clock of the cs6420 in speed. also, four extra clocks are re- quired after drdy is brought high in order to latch the data into the cs6420, as is shown in figure 5. grounding considerations proper grounding of the cs6420 is necessary for optimal performance from this mixed-signal de- vice. the cs6420 should be considered an analog device for grounding purposes. the digital sections of the cs6420 are synchro- nized with its adcs and dacs to minimize the ef- fects of digital noise coupling. however, for external digital devices that are asynchronous with respect to the cs6420, precautions should be taken to minimize the chances of digital noise coupling into the cs6420. a design with the cs6420 should have a separate ground plane for any digital devices. for example, a system microcontroller should be on a digital ground plane with its control lines leading to the cs6420 in the shortest reasonable distance. the cs6420 itself should lie completely on the analog ground plane. layout considerations the physical layout of the traces and components around the cs6420 will also strongly affect the per- formance of the device. special attention must be paid to decoupling capacitors, the crystal oscillator, and the input anti-aliasing filters. the decoupling capacitors for the power supplies of the cs6420 should be placed as close as possible to the power pins for best performance. there are two capacitors per pin: the 0.1 m f capacitor needs to be closest to the pin to decouple the high fre- quency components, and the larger cap can be far- ther away. the mb pin is the most critical as it connects directly to the on-chip voltage reference. avdd and dvdd are secondary to mb with re- spect to priority. the crystal oscillator should be placed as close as possible to reduce the distance that the high fre- quency signals must travel. if the crystal is placed too far away, the trace inductance may cause prob- lems with oscillator startup. the next concern with placement is the input anti- aliasing filters for the adc inputs. ni has an rc low-pass network with a corner frequency of 8 khz. the capacitor of this low-pass network should be placed very close to the pin so that there is very little exposed trace to pick up noise. if the on-chip microphone amplifier is used, the 0.022 m f capac- itor on apo will provide the appropriate cutoff fre- quency, and so should be placed close to the apo pin. if the on-board preamplifier is not used, apo will have the same rc network as ni, and should be treated similarly. the connections from the controller to the micro- controller interface should be short straight traces, if possible. the traces should not run very close to any digital clocks to avoid cross coupling. system design the cs6420 is ultimately only one part of a bigger full-duplex hands-free system. in order for that sys- tem to work well, it needs to be properly balanced. the distribution of the system gains will make or break the echo canceller. in order to judge perfor- mance, however, the system integrator must be armed with the means to test the product. gain structure the distribution of the system gains is an important design consideration to keep in mind. gain distri- bution is an intricate balancing act where the sys- tem integrator tries to maximize dynamic range while minimizing noise, and at the same time, get- ting excellent echo canceller performance.
cs6420 ds205pp2 29 the basic constraint on getting good echo canceller performance is that the maximum output should not clip when coupled to the input. for example, if in a speakerphone, ao provides 1 v rms to a speak- er, the reflections reaching the microphone should present no more than 1 v rms to the acoustic adc. in fact, it is advisable to allow 6 db or even 12 db of margin, such that in the above example, the sig- nal present at the acoustic adc is 250 mv rms . after this coupling level is established, the desired signal gain must be established. to continue from the previous example, the transmit gain must be ad- justed to make sure the near-end talker is easy to hear at the far-end. if the signal from the near-end talker clips at the adc, it is not significant to the echo path because the aec should not be updating anyway. in general, to minimize noise, system gain should be concentrated before the adc. however, this is not practical in all cases, mostly because of the cou- pling constraint. the cs6420 offers the agcd gains provided by tvol and rvol to help provide the desired gain. the cs6420 offers two different programmable gain sources: tgain/rgain and tvol/rvol. tgain and rgain switch in different size sampling capac- itors at the adc to provide a choice of 0 db, 6 db, 9.5 db, and 12 db of analog gain. tvol and rvol introduce digital gain and attenuation in 3 db steps. the difference is significant in that the digital gain will gain up the noise of the adc as well as the de- sired signal, whereas the analog gain will not. testing issues the following tests are suggestions for measuring echo canceller and half-duplex performance. erle echo return-loss enhancement (erle) is a mea- sure of the attenuation that an echo canceller pro- vides. the number is an expression of the ratio of the level of signal without the echo canceller com- pared to the level of signal with the echo canceller. when measuring erle, it is important that any po- tential acoustic loops be broken; so to measure the erle of the acoustic canceller, the no output should be disconnected from the rest of the net- work. this will prevent feedback which could oc- cur when all of the cs6420s failsafes are disabled. the following example outlines the steps necessary to measure the erle of the acoustic echo cancel- ler. it is important to choose a good test signal for the tests to be valid. as mentioned in the adaptive fil- ter section, the cs6420 does not work optimally with white noise. the best signal to use would be a repeatable speech signal, like a recording of some- one counting or saying ah. use the microcontroller interface to disable trans- mit and receive suppression as well as half-duplex. allocate all the taps to the acoustic canceller in or- der to allow full-duplex without the network can- celler being trained. the gains should be set appropriate for good system performance. the first measurement is a baseline figure of per- formance with no echo canceller. use the micro- controller interface to clear the acoustic canceller coefficients. inject the test signal at ni and measure the rms voltage at no. this measurement gives the baseline coupling level (denominator). use the microcontroller interface to set the acous- tic canceller coefficients to normal which will al- low the adaptive filter to adapt. inject the test signal at ni and allow a few seconds for the filter to adapt. measure the rms voltage at no. this measurement gives the cancelled echo level (numerator). convert both voltages to decibels and subtract the echo cancelled level from the baseline level to cal- culate the erle. at the factory, with known good components, we typically see 30 db of erle with speech.
cs6420 30 ds205pp2 convergence time convergence time is a measure of how quickly the adaptive filter can model the echo path. from cleared coefficients, the training signal is injected into the echo canceller and the time for the erle to reach a given threshold value is the convergence time. different customers will have different threshold levels, so crystal does not specify con- vergence time. the following example will measure convergence time for the acoustic echo canceller: set up the system as for the erle test. clear the acoustic canceller coefficients through the micro- controller interface. apply the training signal to ni, set the coefficients to normal, and simulta- neously start a timer. once the measured erle reaches the threshold the system designer desires, stop the timer. the elapsed time is the convergence time. a good value for the threshold would be the aerle value from register 3, since this would be the time for the cs6420 to go from half-duplex mode to full-duplex mode. a good tool for this measurement is a digital stor- age oscilloscope set to a slow sweep so that about five seconds of signal is shown on the screen. one channel of the oscilloscope should monitor the adc input (for an uncancelled reference), and an- other channel should monitor the echo cancelled output. this technique is especially effective when speech is the training signal. we see about 2-5 seconds of training time using known good equipment. this time assumes contin- uous speech as the training signal. pauses will ex- tend the convergence time. half-duplex switching although the cs6420 transitions from half-duplex operation from reset after only a few utterances are passed through the system, the performance of the half-duplex is critical to the end-user in cases where the echo canceller is not adequate. the half- duplex switching characteristics can be subjective- ly tested with the following procedure: set the cs6420 microcontroller interface to the nominal register values for the system, but clear the acoustic and network echo canceller coefficients. this will force the cs6420 to remain in half-duplex mode. the most useful test of practical performance found at crystal has been the alternating counting test. in this test the person at the near-end counts all the odd numbers and the person at the far-end counts all the even numbers. this tests the inter- ruptibility of the half-duplexer. during testing, sys- tem parameters for the half-duplex may need to be changed to accommodate the level of performance expected for the product. see the half-duplex and register definitions sections for more details.
cs6420 ds205pp2 31 pin descriptions analog interface ao - acoustic interface output, pin 3 analog voltage output for the acoustic side (near-end output/receive output). maximum output signal is 1 v rms (2.8 v pp ). this output can drive down to 10 k w and is usually followed by a speaker driver. the output is pre-compensated to expect a single-pole rc low pass filter with a corner frequency of 4 khz. no - network interface output, pin 4 analog voltage output for the network side (far-end output/transmit output). maximum output signal is 1 v rms (2.8 v pp ). this output can drive down to 10 k w . the output is pre- compensated to expect a single-pole rc low pass filter with a corner frequency of 4 khz. api - acoustic interface preamplifier input, pin 20 input to the acoustic side microphone preamplifier. signal source resistance at this pin will reduce the 34 db gain inherent in the preamplifier. the maximum signal without clipping is 20 mv rms (57 mv pp ), assuming default settings. apo - acoustic interface preamplifier output, pin 18 output of the acoustic side microphone preamplifier and input to the acoustic side analog-to- digital converter (near-end input/transmit input). this input expects a single-pole rc anti- aliasing filter with a corner frequency of 8 khz. maximum signal level before clipping at this point is 1 v rms (2.8 v pp ), assuming default settings for the tx analog gain. mb - microphone bias voltage output, pin 19 output of 3.5 vdc provides the internal voltage reference for the cs6420. mb must be decoupled with a 10 m f and 0.1 m f capacitor to prevent noise from affecting the on-chip voltage reference. mb must not be connected to any load. 1 2 3 4 5 6 7 8 12 13 14 15 16 avdd agnd ao no rst drdy strobe data dvdd dgnd clki clko nc4 9 10 nc1 nc2 17 18 apo ni 19 20 api mb 11 nc3 cs6420
cs6420 32 ds205pp2 ni - network interface input, pin 17 input to the network side analog-to-digital converter (far-end input/receive input). this input expects a single-pole rc anti-aliasing filter with a corner frequency of 8 khz. maximum signal level before clipping at this point is 1 v rms (2.8 v pp ), assuming default settings for the rx analog gain. microcontroller interface rst - active low reset input, pin 5 when rst is held low, the cs6420 is put into a low power mode with all functional blocks idle. when rst goes high, the cs6420 is started in a known state. drdy - active low microcontroller interface data ready input, pin 6 drdy is a low pulse used to gate valid input data into the microcontroller interface. strobe - microcontroller interface clock input, pin 7 the rising edge of strobe latches data into the microcontroller interface while drdy is low. data - microcontroller interface data input, pin 8 data is latched into the microcontroller interface on the rising edge of strobe. clock clki - clock oscillator input, pin 14 a 20.480 mhz parallel-resonant crystal should be connected between clki and clko. alternatively, clki may be driven directly with an 20.480 mhz cmos level clock. clko - clock oscillator output, pin 13 a 20.480 mhz parallel-resonant crystal should be connected between clki and clko. must be floating if clki is driven directly with a cmos level clock. power supply avdd - analog supply, pin 1 +5 volt analog power supply. agnd - analog ground, pin 2 analog ground reference. dvdd - digital supply, pin 16 +5 volt digital power supply. dgnd - digital ground, pin 15 digital ground reference.
cs6420 ds205pp2 33 miscellaneous nc1 - no connect, pin 9 must be floating for normal operation. nc2 - no connect, pin 10 must be floating for normal operation. nc3 - no connect, pin 11 must be floating for normal operation. nc4 - no connect, pin 12 must be floating for normal operation.
cs6420 34 ds205pp2 glossary echo a signal that returns to its source after some delay. network echo echo resulting from signal reflection due to an impedance mismatch in a 2-to-4 wire converter (hybrid). acoustic echo echo created by signal propagation in a room from a speaker to a microphone. reverberation local information that bounces around the room before it reaches the microphone. an example of reverberation is when your back is to the speakerphone, and your voice bounces off the wall before it reaches the microphone. near-end the location with the acoustic interface (speaker and microphone). far-end the location connected to the network interface. transmit path the signal path from near-end input to far-end output. receive path the signal path from far-end input to near-end output. full-duplex the state when both transmit and receive paths are simultaneously active. half-duplex the state when either transmit or receive path is active. supplementary echo suppression dynamic attenuation placed in the opposite path of the active path to mask residual echo. for example, if the receive path is active, the transmit path is attenuated. when both paths are simultaneously active, the suppression attenuation is removed. see the section on suppression in design considerations for more details.
cs6420 ds205pp2 35 howling in full-duplex operation, both the microphone and speaker are active at the same time, which, in conjunction with the reflection off the hybrid, creates a closed loop. the signal coupling between the speaker and the microphone can cause feedback oscillation or howling. this happens when the coupling between the speaker and microphone is strong enough to increase the system's closed loop gain above unity. acoustic coupling the strength of the output signal from the speaker that is received at the microphone input. adaptive filter a digital fir filter that adjusts its coefficients to match a transfer function, such as the echo path between the speaker and microphone. the adaptive filter is able to compensate for different and changing conditions, such as someone moving in the room. echo path the acoustic echo path describes the acoustic coupling between the speaker and the microphone. it describes both the magnitude and delay characteristics of the echoed signal. it is affected by the speaker, microphone, phone housing, room, objects in the room, movement, and the talker. the network echo path is comprised of the transfer function between no and ni. path change a change in the transfer function that describes the echo path. changes in the acoustic echo path are most commonly due to motion in the room or gain changes at an external speaker. network echo path is most easily changed by picking up an extension or hanging up the phone. agc the cs6420 implements a peak-limiting automatic gain control to allow a greater dynamic range without clipping the signal. see the section on agc in the design considerations section for details on how it works. doubletalk the condition occurring when both near end and far end talkers are speaking simultaneously. erle echo return-loss enhancement is the amount of attenuation of echo signal an echo canceller provides (not counting suppression) as measured in db. erle is a measure of the echo canceller's performance. the larger the value for erle, the better the echo cancellation.
cs6420 36 ds205pp2 coverage time the cs6420 echo canceller has 508 taps and it can sample an analog signal at an 8 khz rate. 512 x 1/8khz = 63.5 ms. sound travels through air at a rate of around 1 ft/ms. thus the echo canceller can be used in a room with walls 32 feet away, discounting multiple reflections. but remember that at this distance, most of the echo has been attenuated due to the physical separation. the majority of the acoustic coupling comes from the first arrival, or directly from the speaker to the microphone. the first signal is by far the strongest. convergence time a high quality echo canceller is continuously modifying its internal model of the echo path characteristics (see adaptive filter). when the model is complete, the echo canceller will be able to cancel echo to the extent of its rated capabilities. convergence time is the duration it takes the echo canceller to train itself, from cleared coefficients, and switch to full-duplex operation, in the presence of speech.
cs6420 ds205pp2 37 package dimensions 20-pin soic millimeters inches min max max min 0.095 0.105 2.41 2.67 0.008 0.015 0.203 0.381 0.398 0.420 10.11 10.67 0.020 0.013 0.51 0.33 0.016 0.035 0.41 0.89 8 0 0 8 0.510 0.490 12.45 12.95 0.012 0.005 0.127 0.300 1.14 0.040 dim e e b l d e a a c 0.292 0.298 7.42 7.57 d e e 1 e a a b 1 a 2 c l 1 1 1.40 0.055 a 2 nom 2.54 0.280 10.41 0.46 - - 12.70 - 7.49 1.27 2.29 2.54 2.41 nom 0.100 0.011 0.410 0.018 - - 0.500 - 0.295 0.050 0.100 0.090 0.095
? notes ?
39 copyright ? cirrus logic, inc. 1998 (all rights reserved) cirrus logic, inc. crystal semiconductor products division p.o. box 17847, austin, texas 78760 (512) 445 7222 fax: (512) 445 7581 http://www.crystal.com cdb6420 cs6420 evaluation board features l small size of important board components eases system integration l speaker driver included l microphone bias circuitry provided l easy connection to pc parallel port l windows-based control software included l analog and digital patch area l includes evaluation board, 3 1/2? software diskette, and 25-pin d connection cable. description the cdb6420 allows an end-user to quickly and easily integrate the cs6420 full-duplex speakerphone ic into a system and evaluate its performance. the board comes with software which allows the registers of the cs6420 to be manipulated from a personal computer running windows. evaluation requires a +5 v power supply. connections for analog audio sources are pro- vided on the board. the cdb6420 includes a business card-sized section which contains the cs6420 and all the elements neces- sary to provide a speakerphone interface. this section is available for direct insertion into a target system, if the target system can provide the signals required by the cs6420 network interface. ordering information cdb6420 evaluation board digital patch area analog patch area parallel port connector 4 b u f f e r cs6420 agnd +5va no ao speaker apo_in ni api apo ni no ao bias 4 micin jun 97 ds205db1
cdb6420 40 ds205db1 1. assumes tgain=rgain= 0 db. recommended operating conditions parameter symbol min typ max units dc supply (avdd, dvdd) +5va 4.5 5.0 5.5 v ambient operating temperature t aop 02570 c maximum analog input level (apo, ni) note 1 v in 2.8 v pp maximum analog output level (ao, no) v out 2.8 v pp input and output offset voltage v off 2.12 vdc maximum speaker output voltage v spkr 6.4 v pp
cdb6420 ds205db1 41 hardware power supplies the cdb6420 power supply circuitry is shown in figure 1. the evaluation board expects a clean +5v dc power supply to be applied to the +5va binding post. this powers the analog components of the evaluation board. power for the digital com- ponents is derived through a ferrite bead to filter out the high frequency components. analog signal connections figure 2 shows the rca connectors for the analog signals. these rca connectors connect directly to the test points with the same names. all the con- nectors have a nominal maximum input and output voltage of 2.8 v pp . no and ao present 12 k w of output impedance at the connector and have a low- pass corner at 4 khz. apo_in and ni both have input anti-aliasing filters with corners at 8 khz, and an nominal input impedance of 6 k w . microphone bias a constant current source providing the necessary bias for electret microphones is shown in figure 3. a 1/8" stereo microphone jack (j8) is provided for easy connection to microphones with 1/8" plugs. hdr3 provides an easy way to connect a micro- phone with bare wires. the stereo microphone jack is self-shorting, so when connecting to the test point micin or hdr4, make sure that either a plug is in the jack, or the trace from the jack has been cut (hdr4 is a convenient place to do this). speaker driver a speaker driver circuit, implemented with a mo- torola mc34119, is shown in figure 4. this circuit provides 6.4 v pp differentially to the speaker terminals (j1 and j2). this circuit can drive down to an 8 w load. when using the speaker driver, the speaker driver must be connected to ao by hdr3. this will connect the speaker driver to ao, but in doing so will create a voltage divider at the ao test point resulting in a 1.4 v pp full-scale swing at the ao test point and connector. the cdb6420 is shipped with the speaker driver enabled by default. in order to disable the speaker driver, remove the jumper shorting hdr3. this will result in the con- nection between ao and the speaker driver input being broken and allowing the signal at the ao test point and connector to swing to its full extreme of 2.8 v pp full-scale. cs6420 the heart of the cdb6420, the cs6420 full-du- plex speakerphone chip, is shown in figure 5. the outputs ao and no are shown with the output low- pass filters that remove the high frequency compo- nents from the delta-sigma dacs. the inputs apo_in and ni are shown with the anti-aliasing network they require. when using apo as the input, the cs6420 does not use the on-chip 34 db preamplifier. hdr1 must be changed to the preamp off (1-2) position when figure 1. power supply figure 2. rca connections
cdb6420 42 ds205db1 figure 3. microphone input circuit figure 4. speaker output circuit
cdb6420 ds205db1 43 using apo_in as an input. this connects the sig- nal path appropriately. the control bit in the soft- ware (mic) must be set to apo as well. when using micin as the acoustic side input source, hdr1 must be in the preamp on (3-4) position, and the mic bit in the software should be set to api. the test loops labeled api and apo are provided to allow easy probing of the pins of the same name. the maximum signal present at apo should be 2.8 v pp with tgain (see the software section) set to 0 db. parallel port interface figure 6 shows the parallel port interface of the cdb6420 that connects to a pc's parallel port. the 74hct541 buffer serves to protect the cs6420 from any damaging surges. the buffer is socketed for easy replacement. four of the parallel port data lines are used to control the microcontroller interface pins of the cs6420. the rc network serves to min- imize the ringing common to hct devices. test loops are provided for easy oscilloscope access. figure 5. cs6420 connection diagram figure 7. grounds
cdb6420 44 ds205db1 software requirements windows 3.1 or better available lpt port 100kb hard disk space selecting an lpt address when starting the program for the first time, an lpt address must be specified to communicate with the cdb6420. this address is usually avail- able from the bios information displayed at sys- tem boot or from the pc's cmos setup program. this address is necessary for the cdb6420 pro- gram to manipulate the registers on the board. select the lpt address by choosing the appropriate address in the "control | lpt address..." menu- item. a good way to tell if you have selected the correct address is to change the reset option to powerdown (see the reset options section), and press the current reset option button. if you have an ammeter on the power supply to the cdb6420, you will see a dramatic decrease in current con- sumption. alternatively, you can probe the rst line and you should see it go low when you press the button. reset options a dialog box which supports the various cs6420 reset options is shown in figure 8. this dialog box is invoked by selecting the menuitem "control | re- set options...". the "exit timer" edit box allows the system inte- grator to test the effects of an early exit from reset. an integer from 0 to 100 may be entered here to specify how long after rst goes high the control word to terminate the reset timer early will be sent. see the cs6420 datasheet for more details. the cs6420 is capable of either a cold reset or a warm reset. a cold reset resets all registers and figure 6. parallel port
cdb6420 ds205db1 45 variables to their default values. a warm reset saves certain key variables to allow the cs6420 to adapt to the echo path more quickly. the function of the reset button in the main win- dow are controlled by the radio buttons in the group "when reset button is pushed:". the first option will force the cs6420 into a low power mode by holding rst low until the button is pushed again (the text on the button will change to reflect this). the second option will send the current settings of the four registers to the cs6420 immediately after performing the reset. the last option will restore the default values of the registers to the cs6420, which is the mode selected when the program is initially started. note that this option also changes the register settings in the main window. also note that once this type of reset is invoked, the reset type will automatically be changed to restore current register values. main window figure 9 shows the main window of the cdb6420 control program. the main window is a block di- agram representation of the internals of the cs6420 with all the registers placed in their appropriate lo- cations in the signal flow. the right side of the screen is the near end (or acoustic interface), and the left side is the far end (or network interface. see figure 9). the upper path is the receive path, and the lower path is the transmit path. the hexa- decimal values of the registers given the current settings of the controls is given in the lower left corner. these values are sent to the cs6420 over the microcontroller interface. the controls there are 27 controls in the cdb6420 control pro- gram main window. these controls map to the four registers in the cs6420 whose register values can be seen in hexadecimal format in the lower left of the main window. the controls can be easily nav- igated by using the "tab" key to traverse the con- trols from left to right, and "shift-tab" to reverse the direction. furthermore, the four most common- ly used controls have hotkeys which will take you to them: rvol (ctrl+1), tvol (ctrl+2), ncc (ctrl+3), and acc (ctrl+4). these are also acces- sible from the control menu. drop-down box hints once familiar with the values in the drop-down boxes, one can easily choose specific values by typing the first letter of the selection, or using the up and down arrow keys. typing the first letter of the selection can help avoid lots of scrolling and unnecessary writes to the microcontroller interface. for example, if rvol is currently selected, its value can be changed to 30 db by pressing 3 once and to 3 db by pressing it again. 0 db is selected by press- ing 0, and pressing "m" will select mute. alterna- tively, if the value is 0 db, pressing the down arrow will set the register to -3 db, and pressing the up ar- row will set the value to 3 db. as another example, when manipulating the acoustic coefficient controls (acc) drop-down box, the desired setting of the three available selec- tions ("normal", "clear", and "freeze") can be chosen with the keys "n", "c", and "f". if using the arrow keys, going to freeze from normal would al- ways result in a clear, which may not be desired, so pressing "f" would be preferable. you can always use the mouse to select the value. figure 8. reset options
cdb6420 46 ds205db1 button hints the four checkboxes (rsd, hhold, hd, and tsd) can be toggled by pressing the spacebar when the checkbox is selected. the radio button for mic (choosing between api and apo for the adc in- put source) is changed by using the up or down ar- row. the reset button (at the bottom of the main window) can be pressed when selected by pressing the spacebar, or at anytime by pressing the enter key. as above, you can always use the mouse to se- lect the value. controls in detail the controls are discussed in detail below. each description has the register name, the available choices, and the consequence of each choice sum- marized. the following descriptions are only meant as a supplement to the cs6420 datasheet. please carefully read the register section of that document for full details. rgain - receive adc analog gain 0 db, 6 db, 9.5 db, 12 db: set gain of the adc at ni rsd - receive suppression disable checked: disable receive suppression unchecked: enable receive suppression figure 9. main control panel
cdb6420 ds205db1 47 rsthd - receive suppression speech-detection threshold 5db: default 3 db: make disengaging receive suppression easier (sensitive to bursty far end noise) 6 db: make receive suppression harder to disengage (less sensitive to far end noise). ncc - network (echo canceller) coefficient control normal: coefficients adapt to echo path clear: coefficients held to zero (no cancellation) freeze: coefficients held to current values and adapta- tion halted nerle - network erle threshold 24 db: default 18 db: network echo canceller tends to go to full-du- plex more easily (faster) 30 db: network echo canceller requires good perfor- mance to go to full-duplex (slower) nfnse - network full-duplex noise threshold zero: use nerle as sole criterion to transition to full- duplex. -42 db: echo path may not exist, so go to full-duplex when noise level is below -42 db (easy) and in- ternal determination of path/no path is complete -54 db: echo path may not exist, so go to full-duplex when noise level is below -54 db (hard) and in- ternal determination of path/no path is complete tvol - transmit volume 30 db, 27 db, ... , -57 db, -60 db, mute: digital volume control, positive numbers are agc'd. rhdet - receive half-duplex detect threshold 5db: default 3 db: half-duplex detects far end speech more easily (more sensitive to far end noise) 6 db: half-duplex less sensitive to far end speech (less sensitive to far end noise) hhold - half-duplex hold on howl checked: after howl, cs6420 remains in half-duplex unchecked: after howl, cs6420 readapts hdly - half-duplex holdover delay 200 ms: default 100 ms: very easy to break in, but may falsely switch 150 ms: somewhat easy to break in, but may falsely switch hd - half-duplex disable checked: cs6420 will never be in half-duplex. unchecked: cs6420 can be in half-duplex as needed. nsermp - noise estimator ramp rate 1 sec: noise estimator increases noise level by 3db/1sec 0.5 sec: estimated noise level increases by 3 db/ 0.5 sec (improves tracking of dynamic noise levels) 2 sec: estimated noise level increases by 3 db/ 2 sec (improves detection of long bursts of speech) thdet - transmit half-duplex detect threshold 5 db: default 3 db: half-duplex tends to detect transmit speech more easily (more sensitive to near end noise) 6 db: half-duplex is less sensitive to transmit speech (less sensitive to near end noise) rvol - receive volume 30 db, 27 db, ... , -57 db, -60 db, mute: digital volume control where positive numbers are agc'd acc - acoustic (echo canceller) coefficient control normal: coefficients adapt to echo path clear: coefficients held to zero (no cancellation) freeze: coefficients held to current values and adapta- tion halted aerle - acoustic erle threshold 24 db: default 18 db: acoustic echo canceller tends to go to full-du- plex more easily (faster) 30 db: acoustic echo canceller requires good perfor- mance to go to full-duplex (slower)
cdb6420 48 ds205db1 afnse - acoustic full-duplex noise threshold zero: use aerle as sole criterion to transition to full- duplex. -42 db: echo path may not exist, so go to full-duplex when noise level is below -42 db (easy) and in- ternal determination of path/no path is complete -54 db: echo path may not exist, so go to full-duplex when noise level is below -54 db (hard) and in- ternal determination of path/no path is complete pcsen - path-change sensitivity high: more sensitive to near end path changes (on rare occasions may briefly drop into half-duplex during doubletalk) low: less sensitive to path changes and more robust to doubletalk gb - graded beta 0.00 db/ms: use to disable beta grading 0.75 db/ms: use for acoustically dead rooms (e.g. inside a car) 0.38 db/ms: use for "typical" rooms 0.19 db/ms: use for very acoustically live rooms (e.g. glass or tile walls, no carpet, etc.) taps - allocation of filter taps 55.5ms/---: allocate all taps to acoustic canceller (disables network canceller) 47.5ms/16ms:use for short network path echo durations or for longer acoustic path 38.5ms/24ms:use for typical network path echo durations 31.5ms/32ms:use for long network path echo durations (note that acoustic performance may suffer) tsd - transmit suppression disable checked: disable transmit suppression unchecked enable transmit suppression tsthd - transmit suppression threshold 15 db: need 15 db erle at acoustic canceller to dis- criminate between speech and echo 12 db: less sensitive to near end speech (more prone to suppressing near-end speech) 9 db: least sensitive to near end speech (most prone to suppressing near-end speech) tsatt - transmit suppression attenuation level 18 db: default 12 db: use if noise modulation caused by suppression is annoying and residual echo is not perceptible 24 db: use if residual echo after suppression is percep- tible tsbias - transmit suppression bias 18 db: default 15 db: harder for near end to break in. see cs6420 datasheet for details 21 db: easier for near end to break in. see cs6420 datasheet for details tgain - transmit adc analog gain 0 db, 6 db, 9.5 db, 12 db: set gain of the adc at api/apo mic - microphone preamplifier select api: adc input is taken from api/micin through 34 db amplifier (hdr1 on board must be set to preamp on) apo: adc input is taken from apo/apo_in (hdr1 on board must be set to preamp off) reset button cold reset, default: cold reset to default register values warm reset, default: warm reset to default register values cold reset, current: cold reset to register values indicated by con- trols warm reset, current: warm reset to register values indicated by con- trols power down: hold cs6420 rst low to force low power mode power up, cold reset, current: bring cs6420 rst high; restore register values indicated by controls power up, warm reset, current: bring cs6420 rst high; warm reset and re- store register values indicated by controls
cdb6420 ds205db1 49
cdb6420 50 ds205db1
cdb6420 ds205db1 51


▲Up To Search▲   

 
Price & Availability of CD6420

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X