1024-Channel ADPCM
3-74 February 26, 2001
It should be noted that:
•The core should be configured before an encoding or
decoding operation is started.
•When core busy indicator BSY is HIGH, asserting the
control signal DSS is ignored.
•Other input control signals, namely, EDC, CHN, PCM,
G726 and EW, are latched on the clock rising edge
when DSS is HIGH and BSY is LOW.
•Input data S and ID are also latched on the clock rising
edge when DSS is HIGH and BSY is LOW.
•The output data is registered.
•The encoding status indicator ESI indicates the internal
encoding state of the core. When it goes to LOW, the
core has completed the predictor state update. When it
returns to HIGH, the encoding output is available.
•The decoding status indicator (DSI) indicates the
internal decoding state of the core. When it goes to
LOW, the core has completed the predictor state
update. When it returns to HIGH, the decoding output is
available.
•When an encoding or decoding operation is completed,
signal BSY returns to LOW and the core waits for DSS
to be asserted to start the next operation.
•Encoding and decoding can be performed in any order.
Output signals encode status indicator (ESI) and decode
status indicator (DSI) indicate the encoding and decoding
status, respectively. From the cycle when the codec picks
up the input data, ESI or DSI goes to ‘0’. In the cycle when
the encoding/decoding output is available, the correspond-
ing signal returns to ‘1’. Both the signals are set to ‘1’ after
reset and before the first input.
Encoding/Decoding Operation
Encoding or decoding of one data sample is started by as-
serting the data strobe signal (DSS). The input select signal
EDC defines whether the core performs an encoding or a
decoding operation. When EDC is HIGH, the core performs
encoding and the input S is taken. When EDC is LOW the
core will decode and the input ID is taken. Input signal PCM
specifies the type of encoding input data and decoding out-
put data, and input CHN specifies the channel the data be-
longs to, as described in the previous sections.
The ADPCM core requires 6 clock cycles to complete an
encoding or decoding operation for one data sample and
the output indicator BSY is de-asserted after the rising edge
of the 6th cycle. DSS can then be asserted after the rising
edge to start the next operation.
Table 1: Codec Configuration Control Word
CFG Description Control Choice
Bits Control Values 0 1
[7] Selects either A-law or µ-law for encoding in
the duplex mode
µ-law A-law
[6] Control whether even bit inversion is per-
formed for A-law/µ-law encoding operations
in duplex mode
No bit inversion Even bit inversion per-
formed for A-law. All bit in-
version performed for µ-law
Control Values 00 01 10 11
[5:4] Controls the number of bits in the ADPCM
output word when encoding in duplex mode
2 bits 3 bits 4 bits 5 bits
Bits Control Values 0 1
[3] Selects either A-law or µ-law for decoding in
the duplex mode or encoding/decoding in the
flexible mode
µ-law A-law
[2] Controls whether even bit inversion/all bit in-
version is performed for A-law/µ-law decod-
ing operations in the duplex mode or
encoding/decoding in the flexible mode
No bit inversion Even bit inversion per-
formed for A-law. All bit in-
version performed for µ-law
Control Values 00 01 10 11
[1:0] Controls the number of bits in the ADPCM
output word when encoding in the duplex
mode or the number of bits in the ADPCM in-
put word and the ADPCM output word in the
flexible mode.
2 bits 3 bits 4 bits 5 bits