88 Agere Systems Inc.
Application Note
September 2001
Quad Programmable Codec
Using the T8535B/T853 6B
Addresses Used During Call Pro-
cessing (continued)
Notice that, depending on system design, some of the
memory locations listed in Table 2 may be treated as if
they were in Table 1. For example, a system that uses
fixed time slots for the PCM bus could easily load the
time-slot information at initialization and not bother to
reload it at call setup time. This mode of operation may
be desirable, particularly in small line count systems
with additional processing (perhaps forming packets or
voice compression) between the network and the PCM
bus. Similarly, if the network loss plan is fixed, the
GTX2 and GRX1 settings can be set at initialization
and never reloaded at call setup time. Unless the sys-
tem leaves all channels active, the CHACTIVE word is
changed during call setup and tear-down. The controls
for the SLIC and other line components invariably
require adjustment for different call processing states.
It is important that the response of other line card
devices, such as the SLIC, be understood so that
appropriate filtering in the scan data can be used to
generate accurate signaling information.
Resets
Care must be taken when writing into the reset register
(word 128) and applying a hardware reset because
these operations may result in resetting all the codec
memory to the default state. If a hardware reset is
issued or bit zero in word 128 is set, it will be necessary
to reload all of the fixed addresses listed in Table 1, i.e.,
a full initialization is required. Bit 1 of word 128 clears
the processing but does not affect programmed regis-
ters. It also should be used carefully to avoid disrupting
a call in progress, but it will not be necessary to reload
the initialization set of addresses.
If the source of BCLK is switched, or if the BCLK
source is glitched, a hardware reset must be performed
and the registers must be reprogrammed.
Scanning
Historically , for test reasons, the telephone network has
never embraced interrupt driven signaling systems.
The technique that is commonly used is to scan the
signaling state of each channel periodically, typically
every few milliseconds. This can easily be accom-
plished by reading the SLICRD register periodically. A
normal read of this register requires the sending of a
three-byte command followed by a single byte read
data transfer. This procedure has to be repeated for
each of the four channels. Normally, however, the sig-
naling information from the SLIC is only one or two bits,
typically off-hook detection and/or ring trip and/or ring
ground detection. Often ring trip and off-hook or ring
ground detection are multiplexed on a single lead. This
codec has a special command for scan purposes
known as the F ASTSCAN command. This special com-
mand is only one byte long instead of three bytes and
returns a single byte containing two bits of the PIO
interface for each of the four channels. Use of this fea-
ture can greatly speed up the routine scan operation
and is the preferred method of performing periodic sig-
naling checks. Notice that there are hardware implica-
tions to this technique since the required signaling
inputs must be connected to the SLIC0 and SLIC1
leads.
Refresh Operations
Some users prefer to periodically refresh the contents
of memory. For words that are constant, i.e., do not
chan ge with time , this r efresh o perati on may ta ke place
at any time with the channel either active or in standby
mode. Users are cautioned, however, to refrain from
writing any memory addresses other than those listed
in the data sheet, since they may be (and probably are)
used for temporary storage of intermediate processing
results. A similar prohibition against writing into read-
only locations, for the same reasons, is prudent.
Refreshing the memory is not required because the
constants listed in the data sheet are contained in
static memory and are not erased when the channel is
in standby mode.
Configuring Impedance Synthesis
Parameters
Figure 5 shows the important blocks for level setting
and impedance synthesis.
The five variable gains GRX1, GRX2, XAG, GTX1, and
GTX2 affect transmission levels. All of the blocks are
digital gain blocks except XAG. XAG can be pro-
grammed from 0 dB to 24.12 dB in 6.02 dB steps.
GRX1 and GTX2 are the transfer gain blocks. These
are defined by the user to set transmission level points
(TLP).