Production Data
WM8912
COMPANDING
The WM8912 supports A-law and μ-law companding on the digital receive (DAC) path as shown in
Table 36.
REGISTER
ADDRESS
BIT
LABEL
DEFAULT
DESCRIPTION
R24 (18h)
1
DAC_COMP
0
DAC Companding Enable
0 = disabled
Audio
Interface 0
1 = enabled
0
DAC_COMPMODE
0
DAC Companding Type
0 = μ-law
1 = A-law
Table 36 Companding Control
Companding involves using a piecewise linear approximation of the following equations (as set out
by ITU-T G.711 standard) for data compression:
μ-law (where μ=255 for the U.S. and Japan):
F(x) = ln( 1 + μ|x|) / ln( 1 + μ)
A-law (where A=87.6 for Europe):
F(x) = A|x| / ( 1 + lnA)
-1 ≤ x ≤ 1
x ≤ 1/A
F(x) = ( 1 + lnA|x|) / (1 + lnA)
1/A ≤ x ≤ 1
The companded data is also inverted as recommended by the G.711 standard (all 8 bits are inverted
for μ-law, all even data bits are inverted for A-law). The data will be transmitted as the first 8 MSBs of
data.
Companding converts 13 bits (μ-law) or 12 bits (A-law) to 8 bits using non-linear quantization. This
provides greater precision for low amplitude signals than for high amplitude signals, resulting in a
greater usable dynamic range than 8 bit linear quantization. The companded signal is an 8-bit word
comprising sign (1 bit), exponent (3 bits) and mantissa (4 bits).
8-bit mode is selected whenever DAC_COMP=1. The use of 8-bit data allows samples to be passed
using as few as 8 BCLK cycles per LRCLK frame. When using DSP mode B, 8-bit data words may
be transferred consecutively every 8 BCLK cycles.
8-bit mode (without Companding) may be enabled by setting DAC_COMPMODE=1 when
DAC_COMP=0.
BIT7
BIT [6:4]
BIT [3:0]
SIGN
EXPONENT
MANTISSA
Table 37 8-bit Companded Word Composition
PD, Rev 4.0, September 2010
61
w