1
Features
In dep endent m ult ipl e c hannel s of echo
c anc ell ati o n; from 16 channels o f 64ms t o 8
channe ls of 128ms with th e ability to mix
c han ne ls at 128ms o r 64 ms i n an y co m bi na ti on
Independent Power Down mode for each group of
2 chann els f o r power manag em en t
Ful ly com pli an t to ITU -T G.1 65, G.1 68 (200 0) and
(2 00 2) specifi ca ti ons
Pas sed AT&T voic e q uali ty testing for ca rri er
gr ad e echo c an cel lers.
Compatible to ST-BUS and G CI interfa ces with
2Mb/s serial PCM data
PCM c oding, µ/A-Law I TU -T G.711 or si g n
magnitude
Per c hannel F ax / Mo de m G.164 2 100 Hz or G.165
2100Hz phase reversal Tone Disable
Per c han nel ech o ca nceller para me t ers control
Tra nsparen t dat a transfe r an d m ut e
Fast re conve rge nce on ec h o path changes
Ful ly progra m ma bl e converg en ce spee ds
Pat e nt ed Ad vance d N on-Line ar Proce sso r wit h
high quality subjective performance
Protection against narrow band signal divergence
and instability in high echo environments
0 dB to -12 dB l eve l adju s ters (3 dB steps) at a ll
signal ports
Offset nulling of all PCM chan nels
10 MH z o r 20 M H z m aster clo ck o peration
3.3 V IO pads and 1. 8 V L ogi c cor e operation wi th
5-Volt tole rant inputs
IEEE-114 9.1 (JTAG) Test Access P ort
ZL50232 , ZL5 0233, Z L5 0234 and ZL5 02 35 h ave
same pi no ut s in b ot h L QF P a nd LBGA packages
Applications
Vo ice over IP ne twork ga teway s
Voice o ver ATM, Frame Rela y
T1/ E1 / J1 m ult ichannel e cho ca nce l lati on
Wir eless base stations
Echo Canceller po ol s
DCME, satellite and multiplexer system
Ma r ch 2003
Ordering Information
ZL50235/QCC 100-Pin LQFP
ZL50235/GDC 208-Ball LBGA
-40°C to +85°C
ZL50235
16 Channel Voice Echo Canceller
Data Sheet
Figure 1 - ZL50235 Device O verview
RESET
Rout
Sout
DS CS R/W A10-A0 DTA D7-D0
V
SS
V
DD1 (3.3V)
TDI TDO TCK TRSTTMS
Rin
IRQ
C4i
F0i
MCLK
ODE
Sin
Fsel
Test PortMicroprocessor Interface
Timing
Unit
Serial
to
Parallel
Parallel
to
Serial
PLL Note:
R e fe r to Fi gure 4
for Echo Canceller
block diagram
V
DD2 (1.8V)
Echo Canceller Pool
Group 0
ECA/ECB
Group 4
ECA/ECB
Group 1
ECA/ECB
Group 5
ECA/ECB
Group 2
ECA/ECB
Group 6
ECA/ECB
Group 3
ECA/ECB
Group 7
ECA/ECB
ZL50235 Data Sheet
2Zarlink Semiconductor Inc.
Description
The ZL50235 Voice Echo Cancel ler implement s a cost eff ectiv e s oluti on for telephon y voic e-band echo canc ellat ion
conforming to ITU-T G.168 requirements. The Z L50235 arc hit ecture cont ains 8 g roups o f two echo cancel lers (ECA
and ECB) which can be configured to provide two channels of 64 milliseconds or one channel of 128 milliseconds
echo cancellation. This provides 16 channels of 64 milliseconds to 8 channels of 128 milliseconds echo
cancellation or any combination of the two configurations. The ZL50235 supports ITU-T G.165 and G.164 tone
disable requi rem ents.
Figure 2 - 100 Pin LQFP
31
30
50
1711972523211935 13151
D7
D6
D5
D4
D3
D2
D1
D0
CS
DS
VSS
NC
R/W
DTA
2 4 6 8 10 12 14 16 18 20 22 24
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
29
28
27
26
51525354555657585960616263646566676869707172737475
100
77
99
76
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
A1
A2
A3
A4
A5
A0
VDD1
VDD2
NC
VSS
A6
A7
A8
A9
A10
VSS
VDD2
VDD1
VSS
VSS
PLLVSS2
NC
ODE
Sout
Rout
Sin
NC
NC
VSS
C4ib
Foib
Rin
VDD2
VDD2
Mclk
fsel
PLLVSS1
PLLVDD
VDD1
TMS
TDI
TDO
TCK
VSS
TRSTB
RESETB
IRQB
ZL50235QC
NC
(100 pin LQFP)
VDD1 = 3.3V VDD2 = 1.8V
NC
VDD1
VSS
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
IC0
IC0
IC0
IC0
IC0
IC0
IC0
IC0
IC0
IC0
IC0
IC0
IC0
IC0
IC0
NC
Data Sheet ZL50235
3Zarlink Semiconductor Inc.
Figure 3 - 208 B all LBG A
B
C
D
E
F
G
H
J
K
L
M
N
12345678910111213
1
- A1 cor ner is identified by meta llized mark ings.
A
14 15 16
P
R
T
1
VDD2
c4i
F0i Rin SinRout ODE
A1
Sout
MCLK
Fsel
TMSTDI
TCK
RESET IRQ DS CSR/W DTA
D0 D1 D2 D4 D5 D6 D7
A10
A9
A8
A7
A6
A5
A4
A3
A2
ZL50235GD
VDD1
IC0
PLLVSS PLLVDD
IC0 IC0 IC0
IC0 IC0
IC0 IC0
IC0
IC0 IC0
IC0
IC0
IC0
IC0 VDD1
VSS
NC
NC
TDO TRST
A0
D3
NC NC
NC
NC
NC
NC
NC NC NC
NC
NC
NC
NC
NC
NC
NC
VSS
VSS
VSS
VSS VSS
VSS
VSS VSS
VSS VSS
VSS VSS
VSS VSS VSS VSS
VSS
VSS
VSS
VSS
VSS
VSS VSS VSS VSS
VSS
VSS
VSS
VSS
VSS VSS
VSS
VSS
VSS VSS VSS VSS
VSS
VSS
VSS VSS VSS VSS
VSS
VSS
VSS
VSS
VSS
VSS
VSS
VSS
VSS
VSS
VSS
VSS
VSS
VSS VSS
VSS
VSS
VSS
VSS VSS VSS
VSS
VSS
VDD1
VDD1 VDD1
VDD1
VDD1
VDD1
VDD1 VDD1
VDD1 VDD1
VDD1
VDD1
VDD1
VDD1
VDD1
VDD1 VDD1
VDD1
VDD1
VDD1 VDD1
VDD1 VDD1
VDD1
VDD1
VDD1
VDD1
VDD1
VDD1
VDD1
VDD1
VDD1
VDD1
VDD1
VDD1 VDD1
VDD1
VDD1
VDD1
VDD2
VDD2 VDD2
VDD2
VDD2
VDD2 VDD2
VSS
VSS VSS VSS VSS
VSS VSS VSS VSS
VSS VSS VSS VSS
VSS VSS VSS VSS
VDD1
ZL50235 Data Sheet
4Zarlink Semiconductor Inc.
Pin Description
PIN
Name
PIN #
Description
208-Ball LBGA 100 PIN
LQFP
VSS A1, A3,A7,A11, A13,
A15, A16, B2, B6, B8,
B12, B14, B15, B16, C3,
C5, C7, C9, C11, C12,
C13, C14, C16, D4, D8,
D10, D12, D13, E3, E4,
E1 4 , F13 , G 3 , G 4 , G 7 ,
G8, G9, G10, H7, H8,
H9, H10, H13, H14, J7,
J 8 , J9, J10, K7 , K8 , K 9 ,
K10, K13, K14, L3, L4,
M13, M14, M15, N3, N4,
N5, N7, N9, N11, N13,
P2, P3, P5, P7, P9, P11,
P13, P14, R2, R14,
R15, R16, T1, T3, T7,
T10, T14, T16
5, 18, 32,
42, 56, 69 ,
81, 98
Ground.
VDD1 A5, A9, B10, C4, C8,
B4, C10, D3, D5, D7,
D9, D11, D14, E13, F3,
F4, F14, H3, H4, J13,
J14, L13, L14, M3, M4,
N6, N8, N10, N14, N15,
P4, P6, P8, P10, P15,
R4, R6, R8, R10, R12,
T5, T12
27, 48, 77 ,
100 Positi ve Power Suppl y VDD1. Nominally 3.3 Volt .
VDD2 C6, D6, J3, J4, N12,
P12, G13, G14 14, 37, 64 ,
91 Positive Power Supply VDD2. Nomin ally 1.8 Vo lts
IC0 E15, F15, A1 2, A10, A6,
A2, B1, B3, C1, C2, D2,
E2, J2, K2, R1
7, 41, 43,
65, 66, 67 ,
68, 70, 71 ,
72, 86, 87 ,
88, 93, 94
Internal Connection. These pins must be connected to VSS for
normal operation.
NC A14, C15, D1, D15, E1,
F1, G1, G15, H1, H15,
J1 , J 15 , K1 ,
K15,L1,L15,F2,L2
24, 25, 26 ,
44, 45, 46 ,
47, 49, 51 ,
52, 53, 54 ,
55, 73, 74 ,
75, 76, 78 ,
79, 80, 82 ,
83, 84, 85 ,
89, 99, 50
No connection. These pins must be lef t open for normal
operation.
IRQ R9 9 Inter rupt Re quest (Open Drain Output). This output goes low
when an interrupt occ urs in any channel. IRQ returns high when
all the int errupts have been read fr om the Int errupt FIFO
Register. A pull-up resistor (1K typical) is required at this output.
Data Sheet ZL50235
5Zarlink Semiconductor Inc.
DS R11 10 Data S trobe (Input). This active low i nput works in conj unction
with CS to enable the re ad and wri te operatio ns.
CS R13 11 Chip Select (Input). This active low input is used by a
microprocessor to activat e the microprocessor port.
R/W R5 12 Read/Write (Input). This input cont rols the direction of th e data
bus lines (D7-D0) during a mic roprocessor access.
DTA R7 13 Data Transfer Acknowl edgment (Open Drain Output). T h is
activ e low output indicates that a data bus transfer is completed.
A pull-up resistor (1K typical) is required at this output.
D0..D7 T2,T4,T6,T8,T9,T11,
T13,T15 15, 16, 17,
19, 20, 21,
22, 23
Data Bus D0 - D7 (Bidire cti onal). These pins form the 8-bit
bidirectional data bus of the microprocessor port.
A0..A10 P16,N16,M16,L16,K16,
J16,H16,G16,F16,E16,
D16
28, 29, 30,
31, 33, 34,
35, 36, 38,
39, 40
Address A0 to A10 (Input). These inputs provide the A10 - A0
address lines to the internal re gisters.
ODE B13 57 O utput Drive Enable (Input). This input pin is logically AND’d
with the O DE bit-6 of the Main Control Reg ist er. Whe n both ODE
bit and ODE input pin ar e high, the Rout and Sout ST- BUS
outputs are enabled.
When the ODE bit is low or the ODE input pin i s low, the Rout
and Sout ST-B US outputs are hi gh impedance.
Sout A8 58 Send PCM Signal Outp ut (Output). Port 1 TDM data output
streams. Sout pi n output s se rial TDM data st rea ms at 2.048 Mb/s
with 16 channe ls per str eam .
Rout B9 59 Receive PCM Signal Output (Output). Port 2 TDM data output
streams. Rout pi n ou tput s seri al TDM d ata st ream s at 2. 048 Mb/s
with 16 channe ls per str eam .
Sin B11 60 Send PCM Signal Input (Inpu t) . Por t 2 TDM data input streams.
Sin pin receives serial TDM data streams at 2. 048 Mb /s wi th 16
channels per stream.
Rin B7 61 Recei ve PCM Signal I nput (I nput). Port 1 TD M da t a i n pu t
streams. Rin pin rece ives ser ial TDM dat a streams at 2. 048 Mb/s
with 16 channe ls per str eam .
F0i B5 62 Frame Pulse (Input). This input accepts and automatically
identifies fram e synchronization signals formatted according to
ST-BUS or GCI inte rf ace specification s.
C4i A4 63 Serial Clock (Input). 4.096 MHz serial clock for shifting dat a
in/out on the serial streams (Rin, Sin , Rout, Sout).
MCLK G2 90 Master Clock (Input). Nominal 10M Hz or 20MHz Master Clock
input. May be connected to an asynchronous (re lative to frame
signal) clock source.
Pin Description (continued)
PIN
Name
PIN #
Description
208-Ball LBGA 100 PIN
LQFP
ZL50235 Data Sheet
6Zarlink Semiconductor Inc.
1. 0 Devi ce Overvie w
The ZL50235 architecture contains 16 echo cancellers divided into 8 groups. Each group has two echo cancellers,
Echo Canceller A and Echo Canceller B. Each group can be configured in Normal, Extended Delay or Back-to-
Back configurations. In Normal configuration, a group of echo cancellers provides two channels of 64ms echo
cancellation, which run independently on different channels. In Extended Delay configuration, a group of echo
cancellers achieves 128ms of echo cancellation by cascading the two echo cancellers (A & B). In Back-to-Back
configuration, the two echo cancellers from the same group are positioned to cancel echo coming from both
directions in a single channel, providing full-duplex 64ms echo cancellation.
Fsel H2 92 Frequency select (Input). This input selects the Master Clock
frequency ope rat ion. When Fsel pin i s low, nomina l 20 MHz
Master Clock input must be applied. When Fsel pin i s high,
nominal 10 MHz Master Clock input must be applied.
PLLVss1
PLLVss2 K3 97, 95 PLL Ground. Must be connected to VSS
PLLVDD K4 96 PLL Power Supply. Must be connected to VDD2 = 1.8V
TMS M2 1 Test Mode Select (3.3V Input). JTAG signal that control s the
state transitions of the TAP controller. This pi n is pul led high by
an internal pull- up when not driven.
TDI M1 2 Test Serial Data In (3.3V Input). JTAG serial test instructions
and data are shifted in on this pi n. This pin is pull ed high by an
internal pull- up when not driven.
TDO N1 3 Test Serial Data Out (Outpu t). JTAG seria l dat a is outpu t on thi s
pin on the fall ing edge of TCK. This pin is held i n high impedan ce
state when JTAG scan is not enab led.
TCK P1 4 Test Clock (3.3V In put) . Pr ovid e s th e clo ck t o the J TAG t e st
logic.
TRST N2 6 Test Reset (3.3V Inpu t). Asynchronously init ializes the JTAG
TAP contr oller by p utt ing it in the Test-Logic-Reset state. This pi n
should be pulsed low on power-up or held low, to ensure that the
ZL50235 is in the normal functional mode. This pin is pulled by
an inte rnal pull-down when not driven.
RESET R3 8 Devi ce Reset (Schmitt Trigger Input). An active low resets the
device and puts the ZL50235 into a low-power st and-by mode.
When the RESET pin is r e t urn ed to log ic high an d a c l ock is
applied to the MCLK p in, the device will automatica lly execute
initialization routines, which preset all the Control and Sta tus
Regi s t ers to their d efault power -up value s.
Pin Description (continued)
PIN
Name
PIN #
Description
208-Ball LBGA 100 PIN
LQFP
Data Sheet ZL50235
7Zarlink Semiconductor Inc.
Each echo canceller contains the following main elements (see Figure 4).
Adaptive Fi lt er f o r est im at ing the ec ho chan ne l
Subtracto r for ca nc el li ng the echo
Double-Tal k d etector for disa bl ing the fil ter ada ptat ion durin g period s of d ou bl e-tal k
Pat h Ch ange d etector fo r fast re converg en ce on maj o r ech o path changes
Instability Detector to combat instability in very low ERL env ironments
Patented Advanced Non-Linear Processor for suppression of residual echo, with comfort noise injection
Di sab l e Tone Detecto rs f or det e cti ng val id disab le t o nes at se nd and r ece i ve pa th i np uts
Nar ro w- B an d D et e ct or for pre venting A daptive Fi lt er d i vergence f ro m n ar row-band sig nal s
Offset Null filte rs for remov ing the D C compo nent in PCM ch annels
0 to -12dB level adju sters at all signal ports
Parallel controller interfa ce compatible with Motorola mic rocontro llers
PCM enco de r/ dec oder co mpa ti ble w i th µ/A-Law ITU-T G.711 or Sign-Magnitude coding
Each echo canceller in the ZL50235 has four functional states: Mute, Bypass, Disable Adaptation and Enable
Adaptation. These are explained in the section entitl ed Echo Canceller Functional States.
Figure 4 - Functional Block Diagram
1. 1 Adap tive Fi l ter
The adaptive filt er adapts t o the e cho path and generates an estimate of the echo signal. This echo e sti m ate is then
subtracted from Sin. For each group of echo cancellers, the adaptive filter is a 1024 tap FIR adaptive filter which is
divided into two sections. Each section contains 512 taps providing 64ms of echo estimation. In Normal
configuration, the fir st section i s dedicated to channel A and the second sect ion to channel B. In Exten ded Delay
configuration, both sections are cascaded to provide 128ms of echo estimation in channel A. In Back-to Back
configuration, the first section is used in the receive direction and the second section is used in the transmit
direction for the same channel.
Σ
Non-Linear
Processor
Offset
Null Linear/
µ
/A-Law
Microprocessor
Interface
Double - Talk
Detector
Control
Narrow-Band
Detector
µ
/A-Law/
Linear
Offset
Null
Echo Canc el ler (N), wh ere 0 < N < 15
Sout
Rin
Sin
Rout
-
Programmable Bypass
(channel N)
(channel N)
(channel N)
(channel N)
MuteR
MuteS
0 to -12dB
Level Adjust
Linear/
µ
/A-Law 0 to -12dB
Lev el Adjust
0 to -12dB
Level Adjust
µ
/A-Law/
Linear 0 to -12dB
L evel Adjust
Adaptive
Filter
Disable Tone
Detector
Disable Tone
Detector
Detector
Path Change
Instability
Detector
ZL50235 Data Sheet
8Zarlink Semiconductor Inc.
1.2 D ouble -Talk Detect or
Double-Talk is defined as those periods of time when signal energy is present in both directions simultaneously.
When this happens, it is necessary to disable the filter adaptation to prevent divergence of the Adaptive Filter
coefficients. Note that when double-talk is detected, the adaptation process is halted but the echo canceller
continues to cancel echo using the previous converged echo profile. A double-talk condition exists whenever the
relative signal level s of Rin (Lrin) and Sin (Lsin) meet the following condit ion:
Lsin > Lrin + 20log10(DTDT)
where DTDT is th e Double-Talk Detect ion Threshold. Lsin and Lrin are signal levels expressed in dBm0.
A different method is used when it is uncertain whether Sin consists of a low level double-talk signal or an echo
return. During these periods, the adaptation process is slowed down but it is not halted. The slow convergence
speed is set using the Slow sub-register in Control Register 4. During slow convergence, the adaptation speed is
reduced by a factor of 2Slow relative to normal convergence for non-zero values of Slow. If Slow equals zero,
adaptation is halted completely.
In the G.168 standard, the echo return loss is expected to be at least 6 dB. This implies that the Double-Talk
Detector Threshold (DTDT) should be set to 0.5 (-6 dB). However, in order to achieve additional guardband, the
DTDT is set inter nally to 0.5625 (- 5 dB).
In some applications the return loss can be higher or lower than 6 dB. The ZL50235 allows the user to change the
detection thr eshold to suit each application’ s need. This threshold can be set by writing the desired threshold value
into the DTDT register.
The DTDT regis ter is 16 bits wide. The regi ster value i n hexadecimal can be calculat ed wit h the follo wing equation:
DTDT(hex) = hex(DTDT(dec) * 32768)
where 0 < DTDT(dec) < 1
Examp le: For DTDT = 0.5625 (-5 dB), the
hexadecimal value becomes
hex(0.5625 * 32768) = 4800hex
1.3 Pa th Ch a nge De tect or
Integrated into the ZL50235 is a Path Change Detector. This permits fast reconvergence when a major change
occurs in the echo channel. Subtle changes in the echo channel are also tracked automatically once convergence
is achi eved, but at a much slower speed.
The Path Change Detector is activated by setting the PathDet bit in Control Register 3 to “1”. An optional path
clearing feature can be enabled by setting the PathClr bit in Control Register 3 to “1”. With path clearing turned on,
the existing echo channel estimate will also be cleared (i.e. the adaptive filter will be filled with zeroes) upon
detection of a major path chang e.
Data Sheet ZL50235
9Zarlink Semiconductor Inc.
1.4 Non-Linear Processor (NLP)
After echo cancellation, there is always a small amount of residual echo which may still be audible. The ZL50235
uses Zarlink’s patented Advanced NLP to remove residual echo signals which have a level lower than the
Adaptive Suppression Threshold (TSUP in G.168). This threshold depends upon the level of the Rin (Lrin)
reference signal as well as the programmed value of the Non-Linear Processor Threshold register (NLPTHR).
TSUP can be calculated by the following equation:
TSUP = Lrin + 20log10(NLPTHR)
where NLPTHR i s the Non-Linear Processor Threshold register value and Lrin is the relativ e power level expressed
in dBm0. The NLPTHR register is 16 bits wide. The register value in hexadecimal can be calculated with the
following equation:
NLPTHR(hex) = hex(NLPTHR(dec) * 3276 8)
where 0 < NLPTHR(dec) < 1
When the level of residual error signal falls below TSUP, the NLP is activated furth er at tenuating t he residual signal
by an additional 30 dB. To prevent a perceived decrease in background noise due to the activation of the NLP, a
spectrally-shaped comfort noise, equivalent in power level to the background noise, is injected. This keeps the
perceived noise l evel constant. Consequently, the user does not hear the activation and de-activat ion of the NLP.
The NLP processor can be disabled by setti ng the NLPDis bit to “1” in Contr ol Regi ster 2.
The comfort noise injector can be disabled by setting the INJDis bit to “1” in Control Register 1. It should be noted
that th e NLPTHR is valid and the comfort noise in jection is acti ve only when the NLP is enabled.
The patented Advanced NLP provides a number of new and improved features over the original NLP found in
previous generation devices. Differences between the Advanced NLP and the original NLP are summarized in
Table 1.
The NLPSel bit in Control Regi ster 3 select s which NLP is used. A “1” will select the Advanced NLP, “0” selects the
origi nal NLP. (See page 29 - Control Regis ter 3 bit descr iption)
The Advanced NLP uses a new noise ramping scheme to quickly and more accurately estimate the background
noise level. The noise ramping method of the original NLP can also be used. The InjCtrl bit in Control Register 3
selects the ramping sch eme .
Feat ure Regi s te r o r Bit(s) A dvanc ed
NLP Default
Value
Original NLP
Default Value
NLP Sele ct ion NLPS e l (Con trol Re gi ster 3) 1 0 (fea t ure
not sup ported)
Reject uncanceled echo as noise NLRun1 (Control Register 3) 1 0 (feature
not sup ported)
Reject double-talk as noise NLRun2 (Control Register 3) 1 0 (feature
not sup ported)
Noise level estimator ramping scheme InjCtrl (Control Regi ster 3) 1 0 (feature
not sup ported)
Noi se l e vel ra mp i ng r ate NLI nc (Nois e C ont ro l ) 5( hex ) C(h ex )
Noise level scaling Noise Scaling 16(hex) 74(hex)
Table 1 - Co m pari son of N LP Typ es
ZL50235 Data Sheet
10 Zarlink Semiconductor Inc.
The NLInc sub-register in Noise Control is used to set the ramping speed. When InjCtrl = 1 (such as with the
Advanced NLP), a lower value will give faster ramping. When InjCtrl = 0 (such as with the original NLP), a higher
value will give faster ramping. NLInc is a 4-bit value, so only values from 0 to F(hex) are valid.
The Noise Scaling register can be used to adjust the relative volume of the comfort noise. Lowering this value will
scale the inj ected noise level down, conversely, raisi ng the value will scale the co mfort noise up. Due to differ ences
in the noise estim ator operation, the Advanced NLP requires a different scaling value than th e ori ginal NLP.
IMPORTANT NOTE: NLInc and the Noise Scaling register have been pre-programmed with G.168 compliant
values. Changing these values may result in undesirable comfort noise performance!
The Advanced NLP also contains safeguards to prevent double-talk and uncanceled echo from being mistaken for
background noise. These features were not present in the original NLP. They can be disabled by setting the
NLRun1 and NLRun2 bits in Control Register 3 to “0”.
1.5 Disa b l e Ton e Detector
The G.165 recommendation defines the disable tone as having the following characteristics: 2100 Hz (±21Hz) sine
wave, a power level between -6 to -31 dBm0, and a phase reversal of 180 degrees (± 25 degrees) every
450 ms 25 ms). If the disable tone is present for a minimum of one second with at least one phase reversal, the
Tone Detector will trigger.
The G.164 recommendation defines the disable tone as a 2100 Hz (+21 Hz) sine wave with a power level between
0 to -31 dBm0. If the disable tone is present for a minimum of 400 ms, with or without phase reversal, the Tone
Detector will trigger.
The ZL50235 has two Tone Detectors per channels (for a total of 32) in order to monitor the occurrence of a valid
disable tone on both R in and Sin. Upon detection of a disable tone, TD bit of the Status Register will indicate logic
high and an i nterrupt i s generated (i.e. IR Q pin low). Refer to Fig ure 5 and to the Interrupts sec t i on.
Figure 5 - Disable Tone Detection
Once a Tone Detector has been triggered, there is no longer a need for a valid disable tone (G.164 or G.165) to
maintain Tone Detector status (i.e. TD bit high). The Tone Detector status will only release (i.e. TD bit low) if the
signals Rin and Sin fall below -30 dBm0, in the frequency range of 390 Hz to 700 Hz, and below -34 dBm0, in the
frequency range of 700 Hz to 3400 Hz, for at least 400 ms. Whenever a Tone Detector releases, an interrupt is
generated (i. e. I R Q pin low).
The selection between G.165 and G.164 tone disable is controlled by the PHDis bit in Control Register 2 on a per
channel basis. When the PHDis bit is set to “1”, G.164 tone disable requirements are selected.
In response to a valid disable tone, the echo canceller must be switched from the Enable Adaptation state to the
Bypass state. This can be done in two ways, automatically or externally. In automatic mode, the Tone Detectors
internally control the switching between Enable Adaptation and Bypass states. The automatic mode is activated by
setting the AutoTD bit i n Control Register 2 to high. In ex ternal mode, an external controller is needed to s ervice t he
TD bit
Rin
Sin
Echo Ca nc e lle r A
Tone Detector
Tone Detector S tat us r eg
ECA
TD bit
Rin
Sin
Echo Ca nc e lle r B
Tone Detector
Tone Detector S tat us r eg
ECB
Data Sheet ZL50235
11Zarlink Semiconductor Inc.
interrupts and poll the TD bits in the Status Registers. Following the detection of a disable tone (TD bit high) on a
given channel, the external controller must switch the echo canceller from Enabl e Adaptation to Bypass sta te.
1.6 In stab ility De tector
In systems with very low echo channel return loss (ERL), there may be enough feedback in the loop to cause
stability prob lems in the ad aptive filte r. This instability can result i n variable p it ched ringing or oscillati on. Shou ld this
ringi ng occur, the Instability Detector will activat e and suppress the osci llati ons.
The Inst abilit y Detector is acti vated by setting the RingClr bi t i n Control Register 3 to “1”.
1.7 Narrow Band Signal Detector (NBSD)
Single or dual frequency tones (i.e. DTMF tones) present in the receive input (Rin) of the echo canceller for a
prolonged period of time may cause the Adaptive Filter to diverge. The Narrow Band Signal Detector (NBSD) is
designed to prevent this by detecting single or dual tones of arbitrary frequency, phase, and amplitude. When
narrow band si gnals are detected, adapt ation is halted but the echo canceller conti nues to cancel echo.
The NBSD will be active regardless of the Echo Canceller functional state. However the NBSD can be disabled by
setting the NBDis bit to “1” in Control Register 2.
1.8 Offs et Nu ll Filte r
Adaptive filters in general do not operate properly when a DC offset is present at any input. To remove the DC
compone nt, the ZL50235 incorporat es O ffset Null filters in both Rin and Sin input s.
The offset null fi lters can be dis abled by setti ng the HPFDis bit to “1” in Control Register 2.
1.9 Ad justable Leve l Pa ds
The ZL50235 provides adjustable level pads at Rin, Rout, Sin and Sout. This setup allows signal strength to be
adjusted both i nside and outside the echo path. Eac h signal level may be in dependent ly scaled with anywhere from
0 to -12 dB level, i n 3 dB steps. Level val ues are set using the Gains regi ster.
CAUTION: Gain adjustmen t can help interface the ZL50235 to a particular system in order to p rovi de opt imum echo
cancellation, but it can also degrade performance if not done carefully. Excessive loss may cause low signal levels
and slow convergence. Exer cise great care when adjusting these values.
The -12 dB PAD bit in Control Register 1 is still supported as a legacy feature. Setting this bit will provide 12 dB of
attenuation at Rin, and override the values in the Gains register.
1.10 ITU-T G.16 8 Comp lianc e
The ZL50235 has been certified G.168 (1997), (2000) and (2002) compliant in all 64 ms cancellation modes
(i.e. Normal and Back-to-Back configurations) by in-house testing with the DSPG ECT-1 echo canceller tester.
The ZL50235 has also been tested for G.168 compliance and all voice quality tests at AT&T Labs. The ZL50235
was classified ascarrier grade” echo canceller.
ZL50235 Data Sheet
12 Zarlink Semiconductor Inc.
2.0 Device Configuration
The ZL50235 architecture contains 16 echo cancellers divided into 8 groups. Each group has two echo cancellers
which can be individually controlled (Echo Canceller A (ECA) and Echo Canceller B (ECB)). They can be set in
three distinct configurations: Normal, Back-to-Back, and Extended Delay. See Figures 6, 7, and 8.
2.1 Normal Configuration
In Normal configuration, the two echo cancellers (Echo Canceller A and B) are positioned in parallel, as shown in
Figure 6, provi ding 64 milliseconds of ech o cancellati on in two channels simult aneousl y.
Figure 6 - Normal D evice Configuration (64ms)
2.2 Back-to-Back Configuration
In Back-to-Back configuration, the two echo cancellers from the same group are positioned to cancel echo coming
from both directions in a single channel providing full-duplex 64ms echo cancellation. See Figure 7. This
configuration uses onl y one tim eslot on PORT 1 and PORT2 and the second times lot normally associated with ECB
contains zero code. Back-to-Back configuration allows a no-glue interface for applications where bidirectional echo
cancellati on is required.
Figure 7 - B ack-to-Back Device Conf iguration (64ms)
Rin
Rout
Sout
Sin
echo
path A
echo
path B
+
-
channel A
ch annel A
+
-
channel B
ch annel B
ECA
ECB
Adaptive
Fi l ter (6 4m s)
Adaptive
Filt er (64 ms )
PORT1PORT2
+
ECA
Sin Sout
Rout Rin
-
ECB
+-
echo echo
path path
Adaptive
Filt er ( 64m s )
Adaptive
Filt er ( 64ms )
PORT1PORT2
Data Sheet ZL50235
13Zarlink Semiconductor Inc.
Back-to-Back configuration is selected by writing a “1” into the BBM bit of Control Register 1 for both Echo
Canceller A and Echo Canceller B for a given group of echo canceller. Table 4 shows the 8 groups of 2 cancellers
that can be conf igured int o Back-to-Back.
Examples of Back-to-Back configuration include positioning one group of echo cancellers between a codec and a
transmission device or between two codecs for echo control on anal og trunks.
2.3 Extend ed D elay c onfig uratio n
In this configuration, the two echo cancellers from the same group are internally cascaded into one 128
milliseconds echo canceller. See Figure 8. This configuration uses only one timeslot on PORT1 and PORT2 and
the second timeslot normally associated with ECB contains quiet code.
Figure 8 - Extended Delay Configuration (128ms)
Extended Delay configuration is selected by writing a “1” into the ExtDl bit in Echo Canceller A, Control Register 1.
For a given group, only Echo Canceller A, Control Register 1, has the ExtDl bit. For Echo Canceller B Control
Register 1, Bit 0 must always be set to zer o.
Table 4 shows the 8 groups of 2 cancell ers that can each be configured into 64ms or 128ms echo ta il capaci ty.
3.0 Echo C ancelle r Functional States
Each echo ca nceller has f our functional st ates: Mute, Bypass, Disabl e Adaptation and En a b le A d ap ta ti on .
3.1 Mute
In Normal and in Ext ended Delay configurati ons, writing a “1” into the MuteR bi t r eplaces Rin wit h quiet code which
is applied to both the Adaptive Filter and Rout. Writing a “1” into the MuteS bit replaces the Sout PCM data with
quiet code.
I n Ba c k- to -B a ck c o nfi guration, w ri ti n g a 1” in to t h e Mu t eR bit of Echo Canceller A, Control Register 2, causes
quiet code to be transmitted on Rout. Writing a “1 into the MuteS bit of Echo Canceller A, Control Register 2,
causes quiet code to be tr ansm itted on Sout.
LINEAR
16 bits
2’s
complement
SIGN/
MAGNITUDE
µ-Law
A-Law
CCI TT (G.711)
µ-Law A-Law
+Zero
(qu iet code) 0000hex 80hex FFhex D5hex
Tab le 2 - Quiet PC M Cod e Ass ign ment
+
-
channel A
channel A
ECA
Sin Sout
Rout Rin
echo
path A Adaptive Filter
(128 ms)
PORT1PORT2
ZL50235 Data Sheet
14 Zarlink Semiconductor Inc.
In Ext ended Delay and in Back-to-Back config urati ons, MuteR and Mute S bi ts of Echo Cance ller B must always be
0”. Refer to Figure 4 and to Control Register 2 for bit description.
3.2 Bypass
The Bypass state directly transfers PCM codes from Rin to Rout and from Sin to Sout. When Bypass state is
selected, the Adaptive Filte r coeffici ents are reset to zero. Bypass state must be sele cted for at least one fr am e
(125 µs) in or der to properl y clear the fi lter.
3.3 Disa ble A da ptatio n
When t he Disable Adaptation state i s selected, the Adapti ve Filter coefficients are frozen at their cur rent value. The
adaptation process is halted, however, the echo canceller continues to cancel echo.
3.4 Enable Adaptation
In Enable Adaptation state, the Adaptive Filter coefficients are continually updated. This allows the echo canceller
to mod el t he echo return path characterist ics in order to cance l echo. This is the normal operati ng state.
The echo canceller functions are selected in Control Register 1 and Control Register 2 through four control bits:
MuteS, MuteR, Bypass and AdaptDis. Refer t o the Regi sters Description for details.
4.0 ZL5 0 235 Throughput Dela y
The throu ghput delay of the ZL50235 varies accordi ng to the d evice configurat ion. For all de vice configurations, Rin
to Rout has a delay of two frames and Si n to Sout has a dela y of three f rames. In Bypass state, the Rin to Rout and
Sin to Sout paths have a delay of two frames.
5.0 S er ial P CM I/O c ha nne ls
There are two sets of TDM I/O st reams, each with channels numb ered from 0 to 31. One set of input streams is for
Receive (Rin) channels, and the other set of input streams is for Send (Sin) channels. Likewise, one set of output
streams is for Rout PCM channe ls, and the other set i s for Sout channels. See Figure 9 for channel allocation.
The arrangement and connection of PCM channels to each echo canc ell er is a 2 port I/O configurat ion for each set
of PCM Send and Receive channels, as illustrated in Figure 9.
5.1 S e rial Data In terf ac e Ti min g
The ZL50235 provides ST-BUS and GCI interface timing. The Serial Interface clock frequency, C4i, is 4.096 MHz.
The input and output data rate of the ST-BUS and GCI bus is 2.048 Mb/s.
The 8 KHz input frame pulse can be in either ST-BUS or GCI format. The ZL50235 automatically detects the
presence of an input frame pulse and identifies it as either ST-BUS or GCI. In ST-BUS format, every second falling
edge of the C4i clock marks a bit boundary, and the data is clocked in on the rising edge of C4i, three quarters of
the way into the bit cell (See Figure 12). In GCI format, every second rising edge of the C4i clock marks the bit
boundary, and data i s clocked in on the sec ond fallin g edge of C4i , half the way into the bit cell (see Figure 13).
Data Sheet ZL50235
15Zarlink Semiconductor Inc.
Figure 9 - ST-BUS and GCI Interface Channel Assignment for 2Mb/s Data Streams
Base
Address + Echo Canceller A Base
Address + Echo Canceller B
MS
Byte LS
Byte MS
Byte LS
Byte
- 00h Control Reg 1 - 20h Control Reg 1
- 01h Control Reg 2 - 21h Control Reg 2
- 02h Status Reg - 22h Status Reg
- 03h Reserved - 23h Reserved
- 04h Flat Delay Reg - 24h Flat Delay Reg
- 05h Reserved - 25h Reserved
- 06h De cay Step Size Reg - 26h Decay Step Size Reg
- 07h Decay S tep Number - 27h Decay St ep Num ber
- 08h Control Reg 3 - 28h Control Reg 3
- 09h Control Reg 4 - 29h Control Reg 4
- 0Ah Noise Scal ing - 2Ah Noise Scaling
- 0Bh Noise Control - 2Bh Noise Control
0Dh 0Ch Rin Peak Detect Reg 2Dh 2Ch Rin Peak Detect Reg
0Fh 0Eh Sin Peak Detect Reg 2Fh 2Eh Sin Peak Detect Reg
11h 10h Error Peak Detect Reg 31h 30h Error Peak Detect Reg
13h 12h Reserved 33h 32h Reserved
15h 14h DTDT Reg 35h 34h DTDT Reg
17h 16h Reserved 37h 36h Reserved
19h 18h NLPTHR 39h 38h NLPTHR
1Bh 1Ah St ep Size, MU 3Bh 3Ah S tep Size, MU
1Dh 1Ch Gains 3Dh 3Ch Gains
1Fh 1Eh Reserved 3Fh 3Eh Reserved
Table 3 - Me m ory Mapping of Per C ha nnel C on t rol and Status Regi s t ers
F0i
Rin/Sin
Rout/Sout
125 µsec
ST-BUS
F0i
GCI interface
Note: Refer to Figur e 12 and Fi gure 13 for tim ing details.
62.5
µ
sec
123456789 1011121314150
Active Channels
Disabled Channels with Random Data
ZL50235 Data Sheet
16 Zarlink Semiconductor Inc.
6.0 Me m ory Ma ppe d Cont rol and Status reg iste rs
Inte rnal memo ry and register s are memory mappe d into the addr ess sp ace of the HOST interf ace. The int ernal dual
ported memory is mapped into segments on a “per channel” basis to monitor and control each individual echo
canceller and associated PCM channels. For example, in Normal configuration, echo canceller #5 makes use of
Echo Canceller B from group 2. It occupies the internal address space from 0A0hex to 0BFhex and interfaces to
PCM channe l #5 on all serial PCM I/O streams.
As illustrated in Table 3, the “per channel” registers provide independent control and status bits for each echo
canceller. Figure 10 shows the memory map of the control/status regist er bl ocks for all echo cancellers.
When Extended Delay or Back-to-Back configu rat ion is selected, Cont rol Regist er 1 of ECA and ECB and Cont rol
Register 2 of the selected group of echo cancellers requi re special car e. Refer to the Register descri ption section.
Table 4 is a list of the channels used for the 16 groups of echo cancellers when they are configured as Extended
Delay or Back-to-Back.
6.1 Normal Configuration
For a given group (group 0 to 7), 2 PCM I/O channels are used. For example, group 1 Echo Cancellers A and B,
channels 2 and 3 are active.
6.2 Exte n ded De lay Co nfigu ratio n
For a given group (group 0 to 7), only one PCM I/O channel is active (Echo Canceller A) and the other channel
carries quiet code. For example, group 2, Echo Canceller A (Channel 4) will be active and Echo Canceller B
(Channel 5) will carr y quiet code.
6.3 Back-to-Back Configuration
For a given group (group 0 to 7), only one PCM I/O channel is active (Echo Canceller A) and the other channel
carries quiet code. For example, group 5, Echo Canceller A (Channel 10) will be active and Echo Canceller B
(Channel 11) will carry quiet code.
Group Channels
00, 1
12, 3
24, 5
36, 7
48, 9
5 10, 11
6 12, 13
7 14, 15
Table 4 - Group and Chann el allocation
Data Sheet ZL50235
17Zarlink Semiconductor Inc.
Fig ure 10 - Memory Mapping
6.4 Power Up Sequence
On power up, the RESET pin must b e held low for 100 µs. Forcing the RESET pi n low will put the ZL50235 in power
down state. In this state, all internal clocks are halted, D<7:0>, Sout, Rout, DTA and IRQ pins are tristated. The 8
Main Contro l Regi sters, the Interrupt FIFO Regis ter and the Test Register are reset to zero.
When the RESET pin returns to logic high and a valid MCLK is applied, the user must wait 500 µs for the PLL to
lock. C4i and F0i can be active during this period. Once the PLL has locked, the user must power up the 8 groups
of echo cancellers individually, by writing a “1” into the PWUP bit in each group of echo canceller’s Main Control
Register.
For each group of echo cancellers, when the PWU P bit toggles from zero to one, echo cancellers A and B execute
their initialization routine. The initial ization routi ne sets the ir registers, Base Add ress+00 hex to Base Address+3Fhex,
to the def ault Reset Value and clea rs t he Adaptive Filter coefficients. Two f rames are necessary for the initialization
routi ne to execute properly.
Once the initi ali zation routine i s executed, the user can set the per channel Control Regist ers, Base Address+ 00hex
to Base Address+3Fhex, for the specific appl ication.
6 . 5 Po wer manage m ent
Each group of echo cancellers can be placed in Power Down mode by writing a “0” into the PWUP bit in their
respective Main Control Register. When a given group is in Power Down mode, the corresponding PCM data are
bypassed from Rin to Rout and from Sin to Sout with two frames delay. Refer to the Main Control Register section
for descr iption.
The typic al power consump ti on can be calculat ed with the followi ng equation:
PC = 9 * Nb_of_groups + 3.6, in mW
where 0 Nb_of_groups 8.
0000h -->
Channel 0, ECA Ctrl/Stat R egisters 001Fh
0020h -->
Channel 1, ECB Ctrl/Stat R egisters 003Fh
0040h -->
Channel 2, ECA Ctrl/Stat R egisters 005Fh
0060h -->
Channel 3, ECB Ctrl/Stat R egisters 007Fh
01C0h -->
Channel 14, ECA Ctrl/Stat Reg is te rs 01DFh
01E0h -- >
Channel 15, ECB Ctrl/Stat Reg is te rs 01FFh
0400h --> 040 7h
Main Contr ol Reg is ters <7:0>
Group 0
Echo
Cancellers
Registers
Groups 2 -- > 6
Echo Cancellers
Registers
Group 1
Echo
Cancellers
Registers
Group 7
Echo
Cancellers
Registers
0410h
Interrupt F IFO Register
0411h
Test Regi ster
0412h ---> FFFFh
Reserved Test Register
ZL50235 Data Sheet
18 Zarlink Semiconductor Inc.
6.6 Call Initialization
To ensure fast initial convergence on a new call, it is important to clear the Adaptive Filter. This is done by putting
the echo canceller in bypas s mode for at least one frame (125 µs) and then enabl ing adaptation.
Since the Narrow Band Det ector is ON” regardless of the functional state of Ec ho Canceller it is recommended that
the Echo canceller s are reset befor e any call progress tones are applied.
6.7 Inter rupts
The ZL50235 provides an interrupt pin (IRQ) to indicate to the HOST processor when a G.164 or G.165 Tone
Disable is detected and released.
Although the ZL50235 may be configured to react automatically to tone disable status on any input PCM voice
channels, the user may want for the external HOST processor to respond to Tone Disable information in an
appropriate application-specific manner.
Each echo canceller will generate an interrupt when a Tone Disable occurs and will generate another interrupt
when a Tone Disable releases.
Upon receiving an IRQ, the HOST CPU should read the Interrupt FIFO Register. This register is a FIFO memory
containing the channel number of the echo canceller that has generated the interr upt.
All pending interrupts from any of the echo cancellers and their associated input channel number are stored in this
FIFO memory. The IRQ always returns high after a read access to the Interrupt FIFO Register. The IRQ pin will
toggle low for each pending interrupt.
After the HOST CPU has received the channel number of the interrupt source, the corresponding per channel
Status Register can be read from internal memory to determine the cause of the interrupt (see Table 3 for address
mapping of S tatus register). The TD bit indicates the presence of a Tone Disable.
The MIRQ bit 5 in the Main Control Register 0 masks interrupts from the ZL50235. To provide more flexibility, the
MTDBI (bit-4) and MTDAI (bit-3) bits in the Main Control Register<7:0> allow Tone Disable to be masked or
unmas ked from generating an inter rupt on a per channel ba sis. Refer to the Regi sters Description section.
Data Sheet ZL50235
19Zarlink Semiconductor Inc.
7.0 JTAG Support
The ZL50235 JTAG interface conforms to the Boundary-Scan standard IEEE1149.1. This standard specifies a
design-for-testability technique called Boundary-Scan test (BST). The operation of the Boundary Scan circuitry is
controlled by an Test Acces s Port (TAP) controller. JTAG i nputs a re 3.3 Volts compli ant only.
7. 1 Test Access P o r t (TAP)
The TAP provides access to many test functions of the ZL50235. It consists of four input pins and one output pin.
The following pins are fo und on the TAP.
Test Clock Input (TCK )
The TCK provid es t h e cl o ck for the test log i c. The TCK does n ot int e r fere with a ny on-c hi p c lock and thus
re m ains i n de pende nt. The TCK permits sh i fting of t e st data into or out o f the B oundar y-S can re gist er cel ls
c onc urr e nt with the oper ati o n of t h e device an d w ith out inter fering w it h the on- ch ip logic.
Test Mode Select Input (TMS )
The logic signa ls r ec ei ve d at th e TMS input ar e i nte r preted b y the TAP Cont roll e r to co nt rol th e t es t
operations. The TMS signals are sampled at the rising edge of the TCK pulse. This pin is internally pulled to
VDD1 when it is not driven fro m an e xternal source .
Test Data Inp ut (TDI)
Serial inpu t data applied to this port is fed either into the ins truction register or into a test data register,
depend ing o n t h e sequence pre viously a ppl ied to th e T MS i np ut. B oth r e gi ste r s are describ ed i n a
s ubs equ ent sec ti on. The r ece i ved i npu t data is sam pl e d a t the ri sing edge of T CK pu ls es. This p in i s
internally pulled to VDD1 w hen it is not driven from an e xt e r nal sourc e.
Test Data Output (TDO)
Dependi ng on t h e se quenc e p revi o usl y a pplied to the T M S input, the cont en ts of eit h er the i nstr u cti on
register or d ata register are serially shifted out toward s the TDO. T he da ta from the TDO is c locked on the
falling edge of the TC K pulses. W hen n o data is shifted through the Bound ary Scan ce lls, the TDO driver is
s et to a high imp edanc e state.
Test Reset (TRST)
This pin is used to reset the JTAG scan structure. This pin is in ternally pulled to VSS.
7. 2 Instruction Regi s ter
In accordance wit h the IEEE 1149.1 standard, the ZL50235 uses public instructions . The JTAG Interface cont ains a
3-bit instruction register. Instructions are serially loaded into the instruction register from the TDI when the TAP
Controller is in its shifted-IR state. Subsequently, the instructions are decoded to achieve two basic functions: to
select the test data reg ister that will oper ate while the inst ructi on is current , and to defin e t he serial t est dat a regist er
path, which is used to shift data between TDI and TDO during data register scanning.
7.3 Test Data Registers
As specified in IEEE 1149.1, the ZL50235 JTAG In terface contains t hree test data regist ers:
Boundar y-S can reg ist er
The Boundary-S ca n r e gi ste r con si sts of a serie s of B ou ndary-S ca n cells arr a nged to form a scan path
ar ou nd t h e bo undar y of t h e ZL 50235 co re l og i c.
Bypass Regi s t er
The Bypa ss re gi ster is a s in gle stage s hif t r egister tha t provide s a o ne- b i t path f ro m TDI to TD O .
Device Id ent if ication registe r
The Device Identification reg ister provides acce ss to the following e ncoded info rmation:
devi c e version num ber, part n um ber an d m an ufacturer' s nam e.
ZL50235 Data Sheet
20 Zarlink Semiconductor Inc.
8. 0 Register Description
Echo Cancelle r A (ECA): Control Register 1
Power-up 00hex R/W Address: 00hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Reset INJDis BBM PAD Bypass AdpDis 0 ExtDI
Functional Description of Register Bits
Reset When high, the power-up in it ializat ion is executed. This presets all regi ster bits inclu ding
this bit and clears the Adaptive Filter coefficients.
INJDis When hig h, th e noise inject ion process is disabled. When low noise i njection i s enabled.
BBM When high, the Back to Back configuration is enabled. When low, the Normal
confi gurati on is enabl ed. Note: Do n ot enable Exte nded-Del ay and BBM configurat ions at
the same ti m e. Always set both BBM bits of the two echo cancell ers (Control Re gister 1)
of the same group to the same logi c value to avoid conflic t.
PAD W hen high, 12d B of attenua tion i s i nsert ed into t he Rin to Rout path . When low , the Gains
register cont rol s the signal l evels.
Bypass When high, Sin data is by-p assed to Sout and Rin dat a is by-passed to Rout. The
Adaptive Filter coeffi cients are set to zero and the fil ter adaptation is stopped. When low,
output data on both Sout and Rout is a function of the echo canceller algorithm.
AdpDis When hig h, echo canceller adaptation is disabled. The Voice Processor cancels echo.
When low, the echo cancel ler dynam ically adapts to the echo path characteri stics.
0 Bits m arked as “1” or “0” are reserved bits and should be written as indicated.
ExtDl When high, Echo Cancel lers A and B of the same gr oup are inter nally cascaded into one
128ms ech o canceller. When low, Echo Cancellers A and B of the same group operate
independently.
Echo Cancelle r B (ECB): Control Register 1
Power-up 02hex R/W Address: 20hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Reset INJDis BBM PAD Bypass AdpDis 1 0
Functional Description of Register Bits
Reset When high, the power-up initialization is executed which preset s all register bits includi ng
this bit and clears the Adaptive Filter coefficients.
INJDis When hig h, th e noise inject ion process is disabled. When low, noise injec tion is enabl ed.
BBM When high, the Back to Back configuration is enabled. When low, the Normal
confi gurati on is enabl ed. Note: Do n ot enable Exte nded-Del ay and BBM configurat ions at
the same ti m e. Always set both BBM bits of the two echo cancell ers (Control Re gister 1)
of the same group to the same logi c value to avoid conflic t.
PAD W hen high, 12d B of attenua tion i s i nsert ed into t he Rin to Rout path . When low , the Gains
register cont rol s the signal l evels.
Bypass When high, Sin data is by-p assed to Sout and Rin dat a is by-passed to Rout. The
Adaptive Filter coeffi cients are set to zero and the fil ter adaptation is stopped. When low,
output data on both Sout and Rout is a function of the echo canceller algorithm.
AdpDis When hig h, echo canceller adaptation is disabled. The Voice Processor cancels echo.
When low, the echo cancel ler dynam ically adapts to the echo path characteri stics.
1 Bits m arked as “1” or “0” are reserved bits and should be written as indicated.
0 Control Register 1 (Echo Canceller B) Bit 0 is a reserved bit and should be written “0”.
Data Sheet ZL50235
21Zarlink Semiconductor Inc.
Not e: In o rde r to c o rre ctl y wri te to Cont r ol Re g iste r 1 an d 2 of ECB, i t i s n ece ss ary to w r ite th e data twi ce to th e re gi ste r, one
immediately after another. The two writes must be separated by at least 350ns and no more than 20us.
Power-up
00hex
ECA: Control Register 2 R/W Address:
01hex + Base Address
ECB: Control Register 2 R/W Address:
21hex + Base Address
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
TDis PHDis NLPDis AutoTD NBDis HPFDis MuteS MuteR
Functional Description of Register Bits
TDis When high, tone detection is disabled. When low, tone detection is enabled. When both
Echo Cancellers A and B TDis bi ts are high, Tone Disabl e processors are disabled
entirely and are put into Power Down m ode.
PHDis When high, the ton e detect ors wi ll t rigger upon th e presence of a 2100 Hz t one r egardl ess
of the presence/absen ce of per iodic phase reversals . W hen low, the tone det ectors will
trigger onl y upon the presence of a 2100 Hz tone with peri odic phase reversals.
NLPDis When high, the non- linear processor i s disabled. When low, the non-l inear processors
function normally. Useful for G.165 conformance testing.
AutoTD When high , the echo canceller puts itself in Bypass m ode when the tone detectors detect
the presence of 2100 Hz ton e. See PHDis for qualification of 210 0 Hz tones.
When low, the echo can celler algorithm will remain operati onal regardl ess of the state of
the 2100 Hz tone detectors.
NBDis When high, the narrow-band detector is disabled. When low, the narrow-band detector is
enabled.
HPFDis When high, the offset nulling high pass filters are bypass ed in t he Rin and Sin paths.
When low, the offset nulling filters are acti ve and wil l remove DC offsets on PCM input
signals.
MuteS When high, data on Sout is muted to quiet code. When low, Sout carries active code.
MuteR When high, data on Rout is muted to quiet code. When low, Rout carries active code.
ZL50235 Data Sheet
22 Zarlink Semiconductor Inc.
Power-up
00hex
ECA: Status Register R/W Address :
02hex + Base Address
ECB: Status Register R/W Address :
22hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Reserve TD DTDet Reserve Reserve Reserve TDG NB
Functional Description of Register Bits
Reserve Reserved bit.
TD Logic hi gh indicates the presence of a 2100Hz tone.
DTDet Logic hi gh indicates the presence of a double-t alk con dit ion.
Reserve Reserved bit.
Reserve Reserved bit.
Reserve Reserved bit.
TDG Tone detec ti on status bit gated with the Aut oTD bit . (Control Register 2)
Logic hi gh indicates that AutoTD has bee n enabled and the tone det ector has detected
the presence of a 2100Hz tone.
NB Logic high indicates the presence of a narrow-band signal on Rin.
Power-up
00hex
ECA: Flat Delay Regist er (FD) R/W Address:
04hex + Base Address
ECB: Flat Delay Regist er (FD) R/W Address:
24hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
FD7 FD6 FD5 FD4 FD3 FD2 FD1 FD0
Power-up
00hex
ECA: Decay Step Size Register (NS) R/W Ad dress:
07hex + Base Address
ECB: Decay Step Size Register (NS) R/W Ad dress:
27hex+ Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
NS7 NS6 NS5 NS4 NS3 NS2 NS1 NS0
Power-up
00hex
ECA: Decay Step Size Control Register (NS) R/W Address:
06hex + Base Address
ECB: Decay Step Size Control Register (NS) R/W Address:
26hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0 0 0 0 0 SSC2 SSC1 SSC0
Note: Bits ma r k ed with “0 ar e r es er v ed bit s and should be wr itten “ 0”
Data Sheet ZL50235
23Zarlink Semiconductor Inc.
Figure 11 - The MU Profile
9.0 Functi ona l De scription of Re gis ter Bits
The Exponential Decay registers ( Decay Step Number and Decay Step Size ) and Flat Del ay register all ow the LMS
adaptation step-size (MU) to be programmed over the length of the FIR fil ter. A pr ogrammable M U profil e allows the
performance of the echo canceller to be optimized for specific applications. For example, if the characteristic of the
echo response is known to have a flat delay of several milliseconds and a roughly exponential decay of the echo
impulse response, then the MU pr ofile can be programmed to approxi m ate this expec ted impulse response thereby
improvi ng the conver gence ch arac teristi cs of the Adapt ive Filt er . Note that in the foll owing regi ster desc ript ions, one
tap is equivalent t o 125µs (64ms/512 ta ps).
FD7-0 Flat Delay: This register defines the flat delay of the MU profile, (i.e., where the MU value is 2-16). The
delay is defined as FD7-0 x 8 taps. For example; If FD7-0 = 5, then MU=2-16 for the first 40 taps of the
echo canc el ler FIR fi lter . The val id range o f FD7-0 is : 0 FD7-0 64 i n normal mode an d 0 FD7-0 128
in extended-delay mode. The default value of FD7-0 is zero.
SSC2-0 Decay Step Size Control: This register controls the step size (SS) to be used during the exponential
decay of MU. The decay rate is defined as a decrease of MU by a factor of 2 every SS taps of the FIR
filter, where SS = 4 x2SSC2-0. For example; If SSC2-0 = 4, then MU is reduced by a factor of 2 every 64
taps of the FIR filter. The default value of SSC 2-0 is 04hex.
NS7-0 Decay Step Number: This register defines the number of steps to be used for the decay of MU where
each step has a period of SS taps (s ee SSC2-0). The start of th e exponential decay is def ined as: Filter
Length (512 or 1024) - [Decay Step Number (NS7-0) x Step Size (SS)] wher e SS = 4 x2SSC2-0.
For example; If NS7-0=4 and SSC2-0=4, then the exponential decay start value is 512 - [NS7-0 x SS] =
512 - [4 x (4x24)] = 256 taps for a filter length of 512 taps.
Amplitude of MU
Time
Flat Delay (FD7-0)
Step Size (SS)
1.0
2-16
FI R Filter Length ( 512 or 1024 tap s )
Number of Steps (NS7-0)
ZL50235 Data Sheet
24 Zarlink Semiconductor Inc.
Power-up
FBhex
ECA: Control Register 3 R/W Address:
08hex + Base Address
ECB: Control Register 3 R/W Address:
28hex + Base Address
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
NLRun2 InjCtrl NLRun1 RingClr Reserve PathClr PathDet NLPSel
Functional Description of Register Bits
NLRun2 When high, the comfort noise level estimator actively rejects double-talk as being background
noise. When low, the noise l evel estimator makes no such disti n ction.
InjCt rl Selects which noise r am ping scheme is used. See Table below.
NLRun1 When high, the comfort noise level estimator actively rejects uncancelled echo as being
background noise. When low, the noise level estimator makes no such distincti on.
RingClr When high, the instability detector is activated. When low, the instability detector is disabled.
Reserve Reserved bit. Must always be set to one for normal operation.
PathClr When high, the cur rent echo channel esti m ate will be cleared and the echo canceller will enter
fast conv ergence mode u pon det ecti on of a p ath c hange. When l ow, the echo c ancel ler wil l keep
the current path estimate but revert to fas t convergence mode upon detecti on of a p ath change .
Note: this bit is ignored if PathDet is low.
PathDet When high, the pat h change detec tor is activated. When low, the path change detector is
disabled.
NLPSel W hen high, the Advanced NLP is selected. When low, the o ri ginal NLP is select ed. See Table 1
on page 9.
Data Sheet ZL50235
25Zarlink Semiconductor Inc.
Power-up
54hex
ECA: Control Register 4 R/W Address:
09hex + Base Address
ECB: Control Register 4 R/W Address:
29hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0 SD2 SD1 SD0 0 Slow2 Slow1 Slow0
Functional Description of Register Bits
0 Mus t be set to zero.
SupDe c These three bit s (SD2, S D1,SD0) control how long the echo canceller re ma ins in a fast
convergenc e state fol lowing a path change , Reset or Bypass operation. A value of zero will keep
the echo canceller in fast convergence indefinitely.
0 Mus t be set to zero.
Slow Slow convergence mode speed adjustment.(Bits Slow2, Slow1,Slow0)
For Slow = 1, 2, ..., 7, slow convergence speed is reduced by a factor of 2Slow as compared to
normal adaptation.
Flow Slow = 0, no adaptation occurs during slow convergence.
Power-up
16hex
ECA: Noise Scaling (NS) R/W Address:
0Ahex + Base Address
ECB: Noise Scaling (NS) R/W Address:
2Ahex + Base Address
Bit 7 Bi t 6 Bit 5 Bit 4 Bi t 3 Bit 2 Bi t 1 Bit 0
NS7 NS6 NS5 NS4 NS3 NS2 NS1 NS0
Functional Description of Register Bits
This register is used t o scale the comfort noise up or down. Larger values will increase the rel ative lev el of
comfort noise. The default value of 16hex will provide G.168 compli ance wit h the Advanced NLP. A value of
74hex is recomm ended if the original NLP is used.
Power-up
45hex
ECA: Noise Control R/W Address:
0Bhex + Base Address
ECB: Noise Control R/W Address:
2Bhex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Reserve Reserve Reserve Reserve NLInc3 NLInc2 NLInc1 NLInc0
Functional Description of Register Bits
Reserve Reserved bits. Must be set to 4 hex for normal operation.
NLInc Noise level estimator ramping rate. W h en InjCtrl = 1, a lowe r value will give faster ra mping.
When InjCtrl = 0, a high er value will give faste r ramping. The default value of 5hex will prov ide
G.168 compliance with InjCtrl = 1. A value of C hex is recomm ended if InjCtrl = 0.
ZL50235 Data Sheet
26 Zarlink Semiconductor Inc.
Power-up
N/A
ECA: Rin Peak Detect Regis ter 2 (RP) R /W Address:
0Dhex + Base Address
ECB: Rin Peak Detect Regis ter 2 (RP) R /W Address:
2Dhex + Base Address
Bi t 7 Bit 6 Bit 5 B it 4 B it 3 B it 2 B it 1 B it 0
RP15 RP14 RP13 RP12 RP11 RP10 RP9 RP8
Power-up
N/A ECA: Rin Peak Detect Register 1 (RP) R/W Address:
0Chex + Base Address
ECB: Rin Peak Detect Regis ter 1 (RP) R/W Address:
2Chex + Base Address
Bi t 7 Bit 6 Bit 5 B it 4 B it 3 B it 2 B it 1 B it 0
RP7 RP6 RP5 RP4 RP3 RP2 RP1 RP0
Functional Description of Register Bits
These peak detector registers all ow the user to monit or the receive in (Ri n) peak signal level. The info rmation
is in 16-bit 2’s complement li near coded format presented in two 8 bit regist ers for each echo canceller. The
high byte is in Register 2 and the low byte is in Regi ster 1.
Power-up
N/A
ECA: Sin Peak Detect Register 2 (SP) R/W Address:
0Fhex + Base Address
ECB: Sin Peak Detect Register 2 (SP) R/W Address:
2Fhex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
SP15 SP14 SP13 SP12 SP11 SP10 SP9 SP8
Power-up
N/A ECA: Sin Peak Detect Register 1 (SP) R/W Address:
0Ehex + Base Address
ECB: Sin Peak Detect Register 1 (SP) R/W Address:
2Ehex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
SP7 SP6 SP5 SP4 SP3 SP2 SP1 SP0
Functional Description of Register Bits
These peak detec tor regi ster s allow th e us er to mon itor the send i n (Sin) peak s ign al level. The informat ion is in
16-bit 2’s complem ent linear coded format presented in two 8 bit registers for each echo canceller. The high
byte is in Regist er 2 and the low byte is in Regi ster 1.
Data Sheet ZL50235
27Zarlink Semiconductor Inc.
Power-up
N/A
ECA: Error Peak Detec t Regi ster 2 (EP) R/W Address:
11hex + Base Address
ECB: Error Peak Detec t Regi ster 2 (EP) R/W Address:
31hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
EP15 EP14 EP13 EP12 EP11 EP10 EP9 EP8
Power-up
N/A
ECA: Error Peak Detec t Regi ster 1 (EP) R/W Address:
10hex + Base Address
ECB: Error Peak Detec t Regi ster 1 (EP) R/W Address:
30hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
EP7 EP6 EP5 EP4 EP3 EP2 EP1 EP0
Functional Description of Register Bits
These peak detector register s allow the user to monitor the error signal peak l evel. The info rmation is in 16-bi t
2’s complement linear coded format presented in two 8 bit register s for each echo canceller. The high byte i s in
Register 2 and the low byte is in Regist er 1.
Power-up
48hex
ECA: Double-Talk Detection Thresh old Regi ster 2 R/W Address:
15hex + Base Address
ECB: Double-Talk Detection Thresh old Regi ster 2 R/W Address:
35hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
DTDT15 DTDT14 DTDT13 DTDT12 DTDT11 DTDT10 DTDT9 DTDT8
Power-up
00hex
ECA: Double-Talk Detection Thresh old Regi ster 1 R/W Address:
14hex + Base Address
ECB: Double-Talk Detection Thresh old Regi ster 1 R/W Address:
34hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
DTDT7 DTDT6 DTDT5 DTDT4 DTDT3 DTDT2 DTDT1 DTDT0
Functional Description of Register Bits
This register allows the user to program the level of Double-Talk Detection Threshold (DTDT). The 16 bit 2’s
com plement linear value def aults to 4800hex= 0.5625 or -5 dB. The maximum value is 7FFFhex = 0.9999 or 0
dB . The hi gh byte is in Register 2 and the low byte is in Regis ter 1.
ZL50235 Data Sheet
28 Zarlink Semiconductor Inc.
Power-up
0Chex
ECA: Non-Linear Processor Threshold Regi ster 2
(NLPTHR) R/W Address:
19hex + Base Address
ECB: Non-Linear Processor Threshold Regi ster 2
(NLPTHR) R/W Address:
39hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
NLP15 NLP14 NLP13 NLP12 NLP11 NLP10 NLP9 NLP8
Power-up
E0hex
ECA: Non-Linear Processor Threshold Regi ster 1
(NLPTHR) R/W Address:
18hex + Base Address
ECB: Non-Linear Processor Threshold Regi ster 1
(NLPTHR) R/W Address:
38hex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
NLP7 NLP6 NLP5 NLP4 NLP3 NLP2 NLP1 NLP0
Functional Description of Register Bits
This regist er allows t he user to program the level of the Non-Linear Processor Threshold (NLPTHR). The 16 bit
2’ s compl ement li near val ue defaul ts t o 0CE0hex = 0.1 or -20.0 dB. The max imum value i s 7FFFhex = 0.9999 or 0
dB . The hig h byte is in Register 2 and the low byte is in Regis ter 1.
Power-up
40hex
ECA: Adaptation Step Size Register 2 (MU) R/W Address:
1Bhex + Base Address
ECB: Adaptation Step Size Register 2 (MU) R/W Address:
3Bhex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
MU15 MU14 MU13 MU12 MU11 MU10 MU9 MU8
Power-up
00hex
ECA: Adaptation Step Size Register 1 (MU) R/W Address:
1Ahex + Base Address
ECB: Adaptation Step Size Register 1 (MU) R/W Address:
3Ahex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
MU7 MU6 MU5 MU4 MU3 MU2 MU1 MU0
Functional Description of Register Bits
This register allows the user to program the level of MU . MU is a 16 bit 2’s complement value which defaults to
4000hex = 1.0 The maximum v alue is 7FFFhex or 1.9999 decimal. The high b yte is i n Regis ter 2 and the low byte
is in Register 1.
Data Sheet ZL50235
29Zarlink Semiconductor Inc.
Power-up
44hex
ECA: Gains Register 2 R/W Address:
1Dhex + Base Address
ECB: Gains Register 2 R/W Address:
3Dhex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0 Rin2 Rin1 Rin0 0 Rout2 Rout1 Rout0
Power-up
44hex
ECA: Gains Register 1 R/W Address:
1Chex + Base Address
ECB: Gains Register 1 R/W Address:
3Chex + Base Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0 Sin2 Sin1 Sin0 0 Sout2 Sout1 Sout0
Functional Description of Register Bits
This register is used to select gain val ues on RIN, ROUT, SIN and SOUT. Gains has the following structure:
RIN ROUT SIN SOUT
Gains = 0xxx 0xxx 0xxx 0xxx
= 0100 0100 0100 0100 (4444hex) defau lt
Gains is sp li t i nto four group s of four bi ts. Each grou p ma ps to a different signal port (as indicated above), and
has three gain bits. The foll owing table indicat es how these gain bits are used:
Bit2 Bit1 Bit0 Gain Level
1 0 0 0 dB ( default)
0 1 1 -3 dB
0 1 0 -6 dB
0 0 1 -9 dB
0 0 0 -12 dB
Note that the -12 dB PAD bit in Cont rol Register 1 provides 12 dB of attenuat ion in the Rin to Rout pat h, and
will override the setti ngs in Gains.
ZL50235 Data Sheet
30 Zarlink Semiconductor Inc.
Main Control Regist er 0 (EC Group 0)
Power-up 00hex R/W Addres s: 400hex
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
WR_all ODE MIRQ MTDBI MTDAI Format Law PWUP
Functional Description of Register Bits
WR_all Writ e all control bit: When high, Gr oup 0-7 Ech o Cancellers Registers are mapped into 0000 hex to
0003Fhex which is Group 0 address m apping. Useful to initialize the 8 Group s of Echo Cancellers
as per Group 0. When low, addr ess m apping is per Figure 10. Note: Only t he Main Control
Register 0 has the WR_all bi t
ODE O utput Data Enabl e: This control bit is logi cally AND’d with the ODE input pin. When both OD E bi t
and ODE input pin are high, the Rout and Sout outputs are enab led. When the ODE bit is low or
the ODE input pin is low, the Rout and Sout outputs are high impedance. Note: On ly th e Main
Control Register 0 has the ODE bit.
MIRQ Mask Interrupt: When high, all the interrupts fr om the Tone Detectors output are masked. The
Tone Detector s operate as specif ied in their Echo Canceller B, Control Register 2.
When low, the Ton e Detectors Int errupts are activ e.
Note: Onl y the Main Control Register 0 has the MIRQ bit.
MTDBI Mask Tone Detector B Interrupt: When high, the Tone Detector interrupt output from Echo
Canceller B is masked. The Tone Detector operates as specified in Echo Canceller B, Control
Register 2. When low, the Tone Detector B Interrupt is active.
MTDAI Mask Tone Detector A Interrupt: When high, the Tone Detector interrupt output from Echo
Canceller A is masked. The Tone Detector operates as specified in Echo Canceller A, Control
Register 2. When low, the Tone Detector A Interrupt is active.
Format ITU-T/Sign Mag: When high, both Echo Cancellers A and B for a given group, accept ITU-T
(G.711) PCM code. When low, both Echo Cancellers A and B for a given group, accept sign-
magnitude PCM code.
Law A/µ Law: When high, both Echo Cancellers A and B for a given group, accept A-Law companded
PCM code. When low , both Echo Cancel lers A and B for a given grou p, accept µ-Law comp anded
PCM code.
PWUP Power-UP: When high, both Echo Canc ell ers A and B and Tone Detect ors for a given gr oup, are
acti ve. When low, both Echo Can celle rs A and B and Tone Detector s for a given gro up, are pl aced
in Power Down m ode. In this mode, the corresponding PCM data are bypassed from Rin to Rout
and f rom Si n to Sout w it h two fram e s delay. W hen the PWUP bit toggles from zero to one, the
echo canceller A and B execut e their initializ ati on routine whi ch presets their registers, Base
Address+00hex to Base Address+3Fhex, to default power up value and clear s the Adaptive Fi lt er
coeffici ents . Two frames are nec essary for the initializati on routine to execute properly. Once the
initialization routine is executed, the user can set the per channel Control Registers for their
specific application.
Data Sheet ZL50235
31Zarlink Semiconductor Inc.
Main Control Register 1 (EC Group 1) R/W Address: 401hex
Main Control Register 2 (EC Group 2) R/W Address: 402hex
Main Control Register 3 (EC Group 3) R/W Address: 403hex
Main Control Register 4 (EC Group 4) R/W Address: 404hex
Main Control Register 5 (EC Group 5) R/W Address: 405hex
Main Control Register 6 (EC Group 6) R/W Address: 406hex
Main Control Register 7 (EC Group 7) R/W Address: 407hex
Power-up 00hex
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Unused Unused Unused MTDBI MTDAI Format Law PWUP
Functional Description of Register Bits
Unused Unu sed Bits.
MTDBI Mas k Tone Detector B Int errupt: When h igh, the Tone Detector interru pt output from Echo Can celler
B is masked. The Tone Detector operate s as speci fi ed in Echo Canceller B, Control Register 2.
When low, the Tone Detector B Interrupt is act ive.
MTDAI Mas k Tone Detector A Int errupt: When h igh, the Tone Detector interru pt output from Echo Can celler
A is masked. The Tone Detector operate s as speci fi ed in Echo Canceller A, Control Register 2.
When low, the Tone Detector A Interrupt is act ive.
Format ITU-T/Sign Mag: When hi gh, bot h Echo Cancellers A and B for a given group, select ITU-T (G.711)
PCM code. When low, bot h Echo Canc ell ers A and B f or a given group, select sign-magnitude PCM
code.
Law A/µ Law: When high, both Echo Cancellers A and B for a given group, select A-Law companded
PCM code. When low, both Echo Cancell ers A and B for a given group, select µ-Law companded
PCM code.
PWUP Power-UP: When high , bot h Echo Cancellers A and B and Tone Detectors fo r a giv en group, are
active. When low, both Echo Cancellers A and B and Tone Detectors for a given group, are placed
in Power Down mode. In this mode, the corresponding PCM data are bypasse d from Rin to R out
and f rom Sin to S out wit h tw o f ra mes del ay. When the PWUP bit toggles from zero to one, the
echo cancellers A and B execute thei r initiali zation rout ine which presets their registers, Base
Address+00hex to Base Address+3Fhex, to default Reset Value and clears the Adaptive Filter
coefficients. Two frames are necessary for the initialization routine to execute properly. Once the
ini tiali zation routine is executed, the user can set the per channel Control Registers for their specifi c
application.
Interrupt FIFO Register
Power-up 00hex R/W Address: 410hex
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
IRQ Unused Unused I4 I3 I2 I1 I0
Functional Description of Register Bits
IRQ Logic high indicates an int e rrupt has occurred. IRQ bit is cle ared after the Int errupt FIFO register
is re ad. Logic Low indi cates that no interrupt is pending and the FIFO is empty.
Unused Unused bit.
Unused Unused bit.
I<4:0> I<4: 0> binary code indi cates the channel number at whi ch a Tone Detector state change has
occurred . Note : Whe never a Tone Disable is det ected or released, an inte rrupt is generated.
ZL50235 Data Sheet
32 Zarlink Semiconductor Inc.
* Exceeding thes e v alues may c ause per m anen t damage. Funct ional operation under t hes e conditions is not implied.
.
Typi c a l f i gure s are at 25°C and are for design aid only : not guarant eed and not su bject to pr oduction testin g
Charac teri s tics ar e ov er rec om m ended operating condit ions unless otherwise st ated
Typi c a l f i gure s are at 25°C, VDD1 =3.3V and are for design aid only: not guaranteed and not subject to production testing.
* Note 1: Maximum leakage on pin s ( output or I/ O pins in high impedance state) is ov er an applied vo ltag e ( VIN).
Absolute Maximum Ratings*
Parameter Symbol Min Max Units
1 I/O Suppl y Volt age (VDD1)V
DD_IO -0.5 5.0 V
2 Cor e Supply Voltage (VDD2)V
DD_CORE -0.5 2.5 V
3 Input Vol tage VI3 VSS - 0.5 VDD1+0.5 V
4 Input Vol tage on any 5V Tolerant I /O pins VI5 VSS - 0. 3 7.0 V
5 Continuous Current at digital outputs Io20 mA
6 Package power dissipation PD2W
7 S tor age temperature TS-55 150 °C
Recommended Oper ating Conditions - Vol tage s ar e with respect to ground (Vss) unless othe rwis e stated
Characteristics Sym Min TypMax Units
1 Operati ng Temper ature TOP -40 +85 °C
2 I/O Supply Voltage (VDD_IO)V
DD1 3.0 3.3 3.6 V
3 Core Supply Voltage (VDD_CORE)V
DD2 1.6 1.8 2.0 V
4 Input High Voltage on 3.3V tolerant I/O VIH3 0.7VDD1 VDD1 V
5 Input High Voltage on 5V tolerant I/O pins VIH5 0.7VDD1 5.5 V
6 Input Low Voltage VIL 0.3VDD1 V
DC Electrical Characteristics - Voltages are with respect to ground (Vss) unless othe r wis e sta ted.
Characteristics Sym Min TypMax Uni ts Test Conditions
1
I
N
P
U
T
S
Static Supply Current ICC 250 µA RESET = 0
IDD_IO (VDD1 = 3.3V) IDD_IO 5 mA All 16 channels active
IDD_CORE (VDD2 = 1.8V) IDD_CORE 40 mA All 16 channels active
2 Power Consumption PC88.5 mW All 16 channels active
3 Input High Voltage VIH 0.7VDD1 V
4 Input Low Voltage VIL 0.3VDD1 V
5 Input Leakage
Input Leakage on Pullu p
Input Leakage on Pulldown
IIH/IIL
ILU
ILD -30
30
10
-55
65
µA
µA
µA
VIN=VSS to VDD1or 5.5V
VIN=VSS
VIN=VDD1
Se e No te 1
6 Input Pin Capacitance CI10 pF
7O
U
T
P
U
T
S
Output Hi gh Voltage VOH 0.8VDD1 VI
OH = 12 mA
8 Output Low Voltage VOL 0.4 V IOL = 12 mA
9 High Impedance Leakage IOZ 10 µAV
IN=VSS to 5.5V
10 Output Pin Capacitance CO10 pF
Data Sheet ZL50235
33Zarlink Semiconductor Inc.
Charac terist ic s ar e over r ec om m ende d operating co nditions unless other wis e stated
Charac terist ic s ar e over r ec om m ende d operating co nditions unless other wis e stated
Typic al figur es ar e at 25 °C, VDD1 = 3.3V and for design aid only: not guarant eed and not s ubject to production testi ng
Charac terist ic s ar e over r ec om m ende d operating co nditions unless other wis e stated
Typic al figur es ar e at 25 °C, VDD1 = 3.3V and for de s ign aid only: not guaranteed and not s ubject to production testi ng
* Note1: High Impedance is me as ur ed by pullin g to the appr opriate ra il with RL, with timing corrected to cancel time taken to discharge CL.
Charac terist ic s ar e over r ec om m ende d operating co nditions unless other wis e stated
Typic al figur es ar e at 25 °C, VDD1 = 3.3V and for design aid only: not guarante ed and not s ubject to production testi ng
AC Electrical Characteristics - Timing Parameter Measurement Voltage Levels
- Voltages are with respect to ground (Vss) unless otherwise stated.
Characteristics Sym Level Units Conditions
1 CMOS Threshol d VTT 0.5VDD1 V
2 CMOS Rise/Fall Threshold Voltage High VHM 0.7VDD1 V
3 CMOS R ise/Fall Threshold Voltage Low VLM 0.3VDD1 V
AC Electrical Char acteristics - Frame Pulse and C4i
Characteristic Sym Min TypMax Units Notes
1 Frame pulse width (ST-BUS, GCI) tFPW 20 2*
tCP-20 ns
2 Frame Pulse Setup time before
C4i falling (ST- BUS or GCI) tFPS 10 122 150 ns
3Frame Pulse Hold Ti m e fr om C4i
fal li ng (ST-BUS or GCI) tFPH 10 122 150 ns
4C4i Period tCP 190 244 300 ns
5C4i Pulse Width Hig h tCH 85 150 ns
6C4i Pulse Width Low tCL 85 150 ns
7C4i Rise/Fall Time tr, tf10 ns
AC Electrical Characteristics - Serial Streams for ST-BUS and GCI Backplanes
Characteristic Sym Min TypMax Units Test Conditi ons
1 Rin/Sin Set-up Time tSIS 10 ns
2 Rin/Sin Hold Time tSIH 10 ns
3 Rout/Sout Delay
- Active to Active tSOD 60 ns CL=150pF
4 Output Dat a Enable (ODE)
Delay tODE 30 ns CL=150pF, RL=1K
See Note 1
AC Electrical Char acteristics - Master Clock - Voltages are with respect to ground (VSS). unl ess otherwise st ate d.
Characteristic Sym Min TypMax Units Notes
1 Master Clock Frequency,
- Fse l = 0
- Fse l = 1 fMCF0
fMCF1 19.0
9.5 20.0
10.0 21.0
10.5 MHz
MHz
2 Master Clock Low tMCL 20 ns
3 Master Clock High tMCH 20 ns
ZL50235 Data Sheet
34 Zarlink Semiconductor Inc.
Charac teri s tics ar e ov er rec om m ended operating condit ions unless otherwise st ated
Typi c a l f i gure s are at 25°C, VDD1 = 3.3V and for des ign aid only: not gua r antee d and not su bject t o pr oduction testin g
Figure 12 - ST-BUS Timing at 2.048 Mb /s
AC Electrical Characteristics - Motorola Non-Multiplexed Bus Mode
Characteristics Sym Min TypMax Units Test Conditions
1CS
set u p fr o m DS fa ll in g tCSS 0ns
2R/W
set up fr om DS fa lli n g tRWS 0ns
3 Address setup from DS falling tADS 0ns
4CS
hold after DS rising tCSH 0ns
5R/W
hol d a fte r D S ris in g tRWH 0ns
6 Address hold after DS rising tADH 0ns
7 Data delay on read tDDR 79 ns
8 Data hold on read tDHR 315ns
9 Data setup on write tDSW 0ns
10 Data hold on write tDHW 0ns
11 Acknowledgment delay tAKD 80 ns
12 Acknowledgment hold time tAKH 08ns
13 IRQ delay tIRD 20 65 ns
V
TT
V
TT
F0i
C4i
tFPW
Rout/Sout
Rin/Sin
tFPH
tSOD
tSIH
tCH tCL
tFPS tCP
tSIS
VTT
VTT
Bit 7, C hannel 0 B it 6 , Channel 0 Bit 5, Channel 0
Bit 7, Ch annel 0 B it 6 , Channel 0 Bit 5, Channel 0
VHM
VLM
tr
tf
Data Sheet ZL50235
35Zarlink Semiconductor Inc.
Figure 13 - G CI I nterface Timing at 2.048 M b/s
Figure 14 - Output Driver Enable (ODE)
Figure 15 - Master Clock
VTT
VTT
F0i
C4i
tFPW
Sout/Rout
Sin/Rin
tFPH
tSOD
tSIH
tCH tCL
tFPS tCP
tSIS
VTT
VTT
Bi t 0, Channe l 0 Bit 1, Channel 0 Bit 2, Channel 0
Bit 0, Channel 0 Bit 1, Ch annel 0 Bit 2, Channel 0
tr
tf
VHM
VLM
VTTHiZ
HiZ
Sout/Rout
ODE tODE
tODE
Vali d Data
VTT
tMCH
tMCL
VTT
MCLK
ZL50235 Data Sheet
36 Zarlink Semiconductor Inc.
Figure 16 - Motorola Non-Multiplexed Bus Timing
DS
A0-A10
CS
D0-D7
D0-D7
READ
WRITE
tCSS tCSH
tADH
tDHR
tRWS
R/W
tADS
tRWH
tDHW
tAKD
tDSW
tDDR
tAKH
DTA
VTT
VTT
VTT
VTT
VTT
VTT
VTT
VALID ADDRESS
VALID READ DATA
VALID WRI TE DATA
tIRD
IRQ VTT
www.zarlink.com
Information relating to products and services furnished herein by Zarlink Semiconductor Inc. trading as Zarlink Semiconductor or its subsidiaries (collectively
“Zarlink”) is believed to be reliable. However, Zarlink assumes no liability for errors that may appear in this publication, or for liability otherwise arising from the
application or use of any such informati on, produ ct or service or for any infr ingeme nt of patents or other intell ectua l property rights owned by third parties which may
result from such application or use. Neither the supply of such information or purchase of product or service conveys any license, either express or implied, under
patents or other intellectual property rights owned by Zarlink or licensed from third parties by Zarlink, whatsoever. Purchasers of products are also hereby notified
that the use of product in certain ways or in combination with Zarlink, or non-Zarlink furnished goods or services may infringe patents or other intellectual property
rights owned by Zarlink.
This publication is issued to provide informatio n only and (unl ess agreed by Za rlink in writing) may not be used, applied or re produ ced for any pu rpose nor f orm part
of any order or contract nor to be regarded as a represen tation relating to the products or services concerned. The products, t heir specifications, services and other
information appearing in this publication are subject to change by Zarlink without notice. No warranty or guarantee express or implied is made regarding the
capability, performance or suitability of any product or service. Information concerning possible methods of use is provided as a guide only and does not constitute
any guarantee that such methods of use will be satisfactory in a specific piece of equipment. It is the user’s responsibility to fully determine the performance and
suitability of any equipment using such information and to ensure that any publication or data used is up to date and has not been superseded. Manufacturing does
not necessarily include testing of all functions or parameters. These products are not suitable for use in any medical products whose failure to perform may result in
significant injury or death to the user. All product s and materials are sold and se rvices provided subje ct to Zarlink’s conditio ns of sa le wh ich are availab le o n request .
Purchase of Zarlink’s I2C components conveys a licence under the Philips I2C Patent rights to use these components in an I2C System, provided that the system
conforms to the I2C Standard Specification as defined by Philips.
Zarlink, ZL and the Zarlink Semiconducto r logo are trademarks of Zarlink Semiconductor Inc.
Copyright 2003, Zarlink Semiconductor Inc. All Rights Reserved.
TECHNICAL DOCUMENTATION - NOT FOR RESALE
For more information about all Zarlink products
visit our Web Site at