Application Information (Continued)
Mixer Input Volume Registers (Index 0Ch - 12h, 18h)
These registers control the input volume controls including
mute. Each volume control is 5 bit which provides from a
range of +12dB gain to 34.5dB attenuation. For stereo ports,
the left and right levels can be independently set. Muting a
given port is accomplished by setting the MSB to 1. Setting
the MSB to 1 for stereo ports mutes both the left and right
channel. Register 0Eh has an additional 20dB boost fora microphone level input. This is enabled by setting bit 6 of register 0Eh to 1.
Mute Gx4:Gx0 Function
0 00000 +12dB gain
0 01000 0dB gain
0 01111 34.5dB attenuation
1 XXXXX mute
Default: 8008h (mono regs.), 8808h (stereo regs.)
Record Select Register (1Ah)
This register independently controls the source for the right
and left channel which will be recorded by the stereo ADC.
The default value is 0000h which corresponds to Mic in.
SL2:SL0 Left Record Source
0 Mic
1 CDIn(L)
2 not used
3 not used
4 Line In (L)
5 Stereo Mix (L)
6 Mono Mix (L)
7 Phone
SR2:SR0 Right Record Source
0 Mic
1 CDIn(R)
2 not used
3 not used
4 Line In (R)
5 Stereo Mix (R)
6 Mono Mix (R)
7 Phone
Record (Input) Gain Register (1Ch)
This registers controls the Record (Input) Gain level for the
stereo input selected via the Record Select Control Register
(1Ah). The gain can be programmed from 0dB to +22.5dB in
1.5dB steps. The level for the left and right channel can be
individually controlled. The input can also be muted by setting the MSB to 1.
Mute Gx3:Gx0 Function
0 1111 22.5dB gain
0 0000 0dB gain
1 XXXX mute
Default: 8000h
General Purpose Register (20h)
This register controls many miscellaneous functions implemented on the LM4540. The miscellaneous functions include
POP which allows the PCM to bypass the National 3D
Sound circuitry, 3D which enables or disables the National
3D Sound circuitry, MIX which selects the MONO_OUT
source, MS which selects the microphone mux source, and
LPBK which connects the output of the stereoADC to the input of the stereo DAC. LPBK provides a digital loopthru path
when enabled.
BIT Function
POP
PCM out path and mute,0=pre3D,1=
post 3D
3D National 3D Sound on / off1=on
MIX Mono output select0=Mix,1=Mic
MS Mic select 0 = Mic1 1 = Mic2
LPBK ADC/DAC loopback
Powerdown Control / Status Register (26h)
This read/write register is used to monitor subsystem readiness and program LM4540 powerdown states. The lower
half of this register is read only with a ″1″ indicated the subsection is ready.Writing to the lower 8 bits will have no effect.
When the AC Link ″Codec Ready″ indicator bit (SDATA_IN
slot 0, bit 15) isa1itindicates that the AC Link and AC ’97
registers are in a fully operational state. TheAC ’97 Controller must further probe the Powerdown Control / Status Register to determine exactly which subsections are ready.
BIT Function
REF Vref’s up to nominal level
ANL Analog mixers ready
DAC DAC section ready to accept data
ADC ADC section ready to transmit data
The supported powerdown modes are as follows.
BIT Function
PRO PCM in ADC’s and Input Mux powerdown
PR1 PCM out DAC’s powerdown
PR2 Analog Mixer powerdown (VREF still on)
PR3 Analog Mixer powerdown (VREF off)
PR4
Digital Interface (AC Link) powerdown
(external clk off)
PR5 Internal Clk disable
PR6 not used
Reserved Registers (28h - 7Ah)
Do not write to these registers as they are reserved.
www.national.com15