Figure 30.Soft Ramp Behavior - Cirrus Logic CS4244 Manual

4 in/4 out audio codec with pcm and tdm interfaces
Table of Contents

Advertisement

noise is avoided. In this mode the soft ramp algorithm linearly interpolates the volume between the volume
changes. There is a lag of one volume change sample since two samples are required to calculate the
first ramp rate.
See
Figure 30
the possible beginning of a volume envelope sequence and resets an envelope counter. The volume
starts ramping to the new volume setting at a constant rate controlled by the
If the envelope counter times out before a new volume sample is received, the next received sample is
treated in the same way as the previous sample and the ramp rate is kept constant. In this way, as long
as the volume samples are distant from each other by more than the envelope counter time out, the rate
is kept constant resulting in the soft-ramp behavior described in the button-press example.
However if the next volume sample is received before the envelope counter times out, then it is assumed
to be part of a volume envelope sequence. The envelope counter is reset and as long as new samples
are received in succession before a time out occurs, the sequence is continued. Starting at the second
volume sample of an envelope sequence, the ramp rate is adjusted using the equation shown in
Figure
30.
Two control parameters allow the user to limit the ramp-rate range to achieve optimum effect. The
DELAY[2:0]
setting limits the maximum ramp rate; higher values will introduce more lag in the envelope
tracking while providing a smoother ramp. The
lower values will permit closer tracking of the envelope but may re-introduce zipper noise. The default val-
ues of these registers are recommended as a starting point. It is possible to disable the volume envelope
DS900F2
for the soft ramp diagram. On the first volume sample received, the CS4244 only detects
Ramp
Rate
Figure 30. Soft Ramp Behavior
Wait State
Envelope Counter
Running
USER: Change
Volume or Mute
Register
Envelope
Yes
Reset Envelope
Counter
Timed Out?
No
Reset Envelope
Counter
MUTE_DELAY
New
Volume
Setting
-
Current
Volume
Setting
Time
Between
Volume
Changes
MIN_DELAY
Limit Ramp Rate
MAX_DELAY
MAX DELAY[2:0]
MUTE DELAY[1:0]
Counter
Ramp Rate =
setting limits the minimum ramp rate;
CS4244
setting.
MIN
40

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CS4244 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Cs4244-cnzCs4244-cnzrCs4244-dnzCs4244-dnzr

Table of Contents