| Electronic Components Datasheet Search |
|
CS42L42 Datasheet(PDF) 35 Page - Cirrus Logic |
|
|
|||||||||||||||||||||||||||||
CS42L42 Datasheet(HTML) 35 Page - Cirrus Logic |
|
35 / 184 page ![]() 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 |
|
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 |
| 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 |