Electronic Components Datasheet Search
  English  ▼

X  

CS42L42 Datasheet(PDF) 35 Page - Cirrus Logic

Part # CS42L42
Description  Low-Power Audio Codec with SoundWire짰?밒2S/TDM and Audio Processing
PDF  184 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  CIRRUS [Cirrus Logic]
Direct Link  http://www.cirrus.com
Logo CIRRUS - Cirrus Logic

CS42L42 Datasheet(HTML) 35 Page - Cirrus Logic

Back Button CS42L42 Datasheet HTML 31Page - Cirrus Logic CS42L42 Datasheet HTML 32Page - Cirrus Logic CS42L42 Datasheet HTML 33Page - Cirrus Logic CS42L42 Datasheet HTML 34Page - Cirrus Logic CS42L42 Datasheet HTML 35Page - Cirrus Logic CS42L42 Datasheet HTML 36Page - Cirrus Logic CS42L42 Datasheet HTML 37Page - Cirrus Logic CS42L42 Datasheet HTML 38Page - Cirrus Logic CS42L42 Datasheet HTML 39Page - Cirrus Logic Next Button
Zoom Inzoom in Zoom Outzoom out
 35 / 184 page
background image
DS1083F3
35
CS42L42
4.3 Three-Band Equalizer
To avoid audible distortion when inputs to the equalizer are extremely large, the gain must be limited to 0 dB for each filter
stage and all B coefficients must be between ±1.0.
As Table 4-2 shows, coefficients are represented in binary by 32-bit signed values stored in S1.30 two’s complement format.
The 2 MSBs represent the sign bit and whole-number portion of the decimal coefficient. The 30 LSBs represent the fractional
portion of the coefficient. Coefficients must be in the range of –2.00000 to 1.999999999 (0x8000 0000–0x7FFF FFFF).
Section 7.16 describes three-band equalizer registers. All coefficients are configured as pass-through at power-up.
Note: Filters are read and written by using EQ_COEF_OUT and EQ_COEF_IN (see p. 157). However, they must be
accessed only as part of a full-filter access procedure; otherwise, the three-band filter may be corrupted and audio
artifacts may occur.
Use Ex. 4-1 to write EQ filter coefficients.
Table 4-2. Equalizer Filter Formatting (FsINT = 48 kHz)
Precision of Coefficients Order of Filter Sample Rate
Coefficient Design Base
Length (in Bytes)
S1.30
3 biquads
FsINT
z–1 (For z–1, design the coefficients at the rate of the filter.)
60
Example 4-1. Writing the EQ Filter Coefficients
STEP TASK
1 Ensure EQ initialization is complete (EQ_
INIT_DONE = 1).
Note: polling EQ_INIT_DONE is valid only
if EQ PDN = 0 (EQ is powered up.)
REGISTER/BIT FIELDS
VALUE
DESCRIPTION
Equalizer Initialization Status
0x01
Reserved
EQ_INIT_DONE
0000 000
1
—
EQ initialization complete.
2 Clear the equalizer start filter bit to allow
writing coefficients.
REGISTER/BIT FIELDS
VALUE
DESCRIPTION
Equalizer Start Filter Control
0x00
Reserved
EQ_START_FILTER
0000 000
0
—
Coefficients can be read or written
3 Disable the EQ bypass.
REGISTER/BIT FIELDS
VALUE
DESCRIPTION
Serial Port SRC Control
0x00
Reserved
EQ_BYPASS
I2C_DRIVE
ASP_DRIVE
SRC_BYPASS_DAC
SRC_BYPASS_ADC
000
0
0
0
0
0
—
No bypass
Normal
Normal
No bypass
No bypass
4 Mute the EQ input path.
REGISTER/BIT FIELDS
VALUE
DESCRIPTION
Equalizer Input Mute Control
0x01
Reserved
EQ_MUTE
0000 000
1
—
Mute EQ Channel input.
5 Set the EQ write enable bit.
REGISTER/BIT FIELDS
VALUE
DESCRIPTION
Equalizer Filter Coefficient Read/Write
0x02
Reserved
EQ_WRITE
EQ_READ
0000 00
1
0
—
Enable EQ write.
Disable EQ read.
6 Write input coefficients.
There are 15 32-bit coefficients and four 8-bit registers, so 60 register writes are required.
The biquad order is as follows: 1, 2, 3
The coefficient order is as follows: b0, b1, a1, a2, b2
The sequence shown in Steps 6.1 through 6.4 writes a single coefficient for a single biquad: This process is repeated 15 times.
The order of coefficients is as follows:
Biquad 1, b0
Biquad 1, b1
Biquad 1, a1
…
Biquad 3, b2
REGISTER/BIT FIELDS
VALUE
DESCRIPTION
6.1
Write EQ_COEF_IN[7:0] (0x2401) Equalizer Filter Coefficient Input 0–3
0xXX
EQ_COEF_IN[7:0]
Coefficient write
6.2
Write EQ_COEF_IN[15:8]
(0x2402)
Equalizer Filter Coefficient Input 0–3
0xXX
EQ_COEF_IN[15:8]
Coefficient write
6.3
Write EQ_COEF_IN[23:16]
(0x2403)
Equalizer Filter Coefficient Input 0–3
0xXX
EQ_COEF_IN[23:16]
Coefficient write
6.4
Write EQ_COEF_IN[31:24]
(0x2404, see note below)
Equalizer Filter Coefficient Input 0–3
0xXX
EQ_COEF_IN[31:24]
Coefficient write



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com