wm8961 Wolfson Microelectronics plc, wm8961 Datasheet - Page 63

no-image

wm8961

Manufacturer Part Number
wm8961
Description
Ultra-low Power Stereo Codec With 1w Stereo Class D Speaker Drivers And Ground Referenced Headphone Drivers
Manufacturer
Wolfson Microelectronics plc
Datasheet
w
WM8961
AUDIO INTERFACE OUTPUT TRISTATE
Register bit TRIS, register 24(18h) bit[3] can be used to tri-state the ADCDAT pin and switch LRC and
BCLK to inputs. In Slave mode (MS=0) LRC and BCLK are by default configured as inputs and only
ADCDAT will be tri-stated, (see Table 45).
Table 45 Tri-stating the Audio Interface
COMPANDING
The WM8961 supports A-law and μ-law companding on both transmit (ADC) and receive (DAC) sides.
Companding can be enabled on the DAC or ADC audio interfaces by writing the appropriate value to
the DACCOMP or ADCCOMP register bits respectively.
Table 46 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 + μ)
F(x) = A|x| / ( 1 + lnA)
F(x) = ( 1 + lnA|x|) / (1 + lnA)
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 MSB’s of
data.
Companding converts 13 bits (μ-law) or 12 bits (A-law) to 8 bits using non-linear quantization. The
input data range is separated into 8 levels, allowing low amplitude signals better precision than that of
high amplitude signals. This is to exploit the operation of the human auditory system, where louder
sounds do not require as much resolution as quieter sounds. The companded signal is an 8-bit word
containing sign (1-bit), exponent (3-bits) and mantissa (4-bits).
8-bit mode is automatically selected during companding. That is whenever DACCOMP[2]=1 or
ADCCOMP[2]=1. The use of 8-bit data allows samples to be passed using as few as 8 BCLK cycles
per LRC frame. When using DSP mode B, 8-bit data words may be transferred consecutively every 8
BCLK cycles.
26
R24 (18h)
Additional
Control (2)
R9 (09h)
Audio
Interface (2)
REGISTER
ADDRESS
REGISTER
ADDRESS
law (where A=87.6 for Europe):
BIT
2:1
4:3
3
BIT
LABEL
TRIS
ADCCOMP
DACCOMP
LABEL
-1 ≤ x ≤ 1
DEFAULT
0
} for x ≤ 1/A
} for 1/A ≤ x ≤ 1
00
00
DEFAULT
Tri-states ADCDAT and switches LRC and
BCLK to inputs.
0 = ADCDAT is an output; LRC and BCLK are
inputs (slave mode) or outputs (master mode)
1 = ADCDAT is tri-stated; LRC and BCLK are
inputs
ADC companding
00 = off
01 = reserved
10 = μ-law
11 = A-law
DAC companding
00 = off
01 = reserved
10 = μ-law
11 = A-law
DESCRIPTION
DESCRIPTION
PP, August 2009, Rev 3.1
Pre-Production
63

Related parts for wm8961