CRD42L51 Cirrus Logic Inc, CRD42L51 Datasheet - Page 32

no-image

CRD42L51

Manufacturer Part Number
CRD42L51
Description
Ref Bd Low-voltage Stereo Codec
Manufacturer
Cirrus Logic Inc
Datasheets
32
4.3.7
Automatic Level Control (ALC)
When enabled, the ALC monitors the analog input signal after the digital attenuator, detects when peak
levels exceed the maximum threshold settings and lowers, first, the PGA gain settings and then increases
the digital attenuation levels at a programmable attack rate and maintains the resulting level below the
maximum threshold.
When input signal levels fall below the minimum threshold, digital attenuation levels are decreased first
and the PGA gain is then increased at a programmable release rate and maintains the resulting level
above the minimum threshold.
Attack and release rates are affected by the ADC soft ramp/zero cross settings and sample rate, Fs. ALC
soft ramp and zero cross dependency may be independently enabled/disabled.
Recommended settings: Best level control may be realized with the fastest attack and slowest release
setting with soft ramp enabled in the control registers. Note: 1.) The maximum realized gain must be set
in the PGAx_VOL register. The ALC will only apply the gain set in the PGAx_VOL. 2.) The ALC maintains
the output signal between the MIN and MAX thresholds. As the input signal level changes, the level-con-
trolled output may not always be the same but will always fall within the thresholds.
Software
Controls:
below full scale
below full scale
MIN[2:0]
MIN[2:0]
(after ALC)
Output
ALC
Input
PGA Gain and/or
Attenuator
“ALC Enable & Attack Rate (Address 1Ch)” on page
page
(Address 0Ah) & ALCB, PGAB (Address 0Bh)” on page
71,
“ALC Threshold (Address 1Eh)” on page
RRATE[5:0]
Figure 11. ALC
ARATE[5:0]
MAX[2:0]
below full scale
71,
MAX[2:0]
below full scale
70,
adjusted manually when
PGAx_VOL[4:0] volume
controls should NOT be
“ALCX & PGAX Control: ALCA, PGAA
ADCx_ATT[7:0] and
59.
“ALC Release Rate (Address 1Dh)” on
ALCx is enabled.
CS42L51
DS679F1

Related parts for CRD42L51