SBAA497B May 2021 – April 2022 PCM3120-Q1 , PCM5120-Q1 , PCM6120-Q1 , TLV320ADC3120 , TLV320ADC5120 , TLV320ADC6120
Table 3-2 shows the assignment of these biquad filters to a specific output channel based on the BIQUAD_CFG[1:0] register setting of the DSP_CFG1 register. Setting BIQUAD_CFG[1:0] to 2'b00 disables the Digital Biquad Filters for all channels. Select this setting when no additional filtering is needed for the system application. Table 3-2 also shows the mapping of the biquad filter coefficients in the TLV320ADCx120 and PCMx120-Q1 register space.
PROGRAMMABLE BIQUAD FILTER | RECORD OUTPUT CHANNEL ALLOCATION USING DSP_CFG1 REGISTER SETTING | ||
---|---|---|---|
BIQUAD_CFG[1:0] = 2'b01 (1 BIQUAD PER CHANNEL) | BIQUAD_CFG[1:0] = 2'b10 (DEFAULT) (2 BIQUADS PER CHANNEL) | BIQUAD_CFG[1:0] = 2'b11 (3 BIQUADS PER CHANNEL) | |
SUPPORTS ALL 4 CHANNELS | SUPPORTS ALL 4 CHANNELS | SUPPORTS ALL 4 CHANNELS | |
Biquad filter 1 | Allocated to output channel 1 | Allocated to output channel 1 | Allocated to output channel 1 |
Biquad filter 2 | Allocated to output channel 2 | Allocated to output channel 2 | Allocated to output channel 2 |
Biquad filter 3 | Allocated to output channel 3 | Allocated to output channel 3 | Allocated to output channel 3 |
Biquad filter 4 | Allocated to output channel 4 | Allocated to output channel 4 | Allocated to output channel 4 |
Biquad filter 5 | Not used | Allocated to output channel 1 | Allocated to output channel 1 |
Biquad filter 6 | Not used | Allocated to output channel 2 | Allocated to output channel 2 |
Biquad filter 7 | Not used | Allocated to output channel 3 | Allocated to output channel 3 |
Biquad filter 8 | Not used | Allocated to output channel 4 | Allocated to output channel 4 |
Biquad filter 9 | Not used | Not used | Allocated to output channel 1 |
Biquad filter 10 | Not used | Not used | Allocated to output channel 2 |
Biquad filter 11 | Not used | Not used | Allocated to output channel 3 |
Biquad filter 12 | Not used | Not used | Allocated to output channel 4 |
Table 3-3 shows the biquad filter coefficients mapping to the register space.
PROGRAMMABLE BIQUAD FILTER | BIQUAD FILTER COEFFICIENTS REGISTER MAPPING | PROGRAMMABLE BIQUAD FILTER | BIQUAD FILTER COEFFICIENTS REGISTER MAPPING |
---|---|---|---|
Biquad filter 1 | P2_R8-R27 | Biquad filter 7 | P3_R8-R27 |
Biquad filter 2 | P2_R28-R47 | Biquad filter 8 | P3_R28-R47 |
Biquad filter 3 | P2_R48-R67 | Biquad filter 9 | P3_R48-R67 |
Biquad filter 4 | P2_R68-R87 | Biquad filter 10 | P3_R68-R87 |
Biquad filter 5 | P2_R88-R107 | Biquad filter 11 | P3_R88-R107 |
Biquad filter 6 | P2_R108-R127 | Biquad filter 12 | P3_R108-R127 |
The DSP_CFG1 Register also determines the number of biquads used through the BIQUAD_CFG bit field shown in Figure 3-4 and Figure 3-5.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DVOL_GANG | BIQUAD_CFG[1:0] | DISABLE_ SOFT_STEP | AGC_SEL | Reserved | DRC_EN | EN_AVOID_CLIP | |
R/W-0h | R/W-2h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DVOL_GANG | BIQUAD_CFG[1:0] | DISABLE_ SOFT_STEP | AGC_ DRE_AGC_SEL | Reserved | DRC_EN | EN_AVOID_CLIP | |
R/W-0h | R/W-2h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h |
BIT | FIELD | TYPE | RESET | DESCRIPTION |
---|---|---|---|---|
7 | DVOL_GANG | R/W | 0h | DVOL control ganged across channels 0d = Each channel has its own DVOL CTRL settings as programmed in the CHx_DVOL bits 1d = All active channels must use the channel 1 DVOL setting (CH1_DVOL) irrespective of whether channel 1 is turned on or not |
6-5 | BIQUAD_CFG[1:0] | R/W | 2h | Number of biquads per channel configuration 0d = No biquads per channel; biquads are all disabled 1d = 1 biquad per channel 2d = 2 biquads per channel 3d = 3 biquads per channel |
4 | DISABLE_SOFT_STEP | R/W | 0h | Soft-stepping disable during DVOL change, mute, and unmute 0d = Soft-stepping enabled 1d = Soft-stepping disabled |
3 | AGC_SEL (TLV320ADC3120 and PCM3120-Q1) | R/W | 0h | AGC selection when is enabled for any channel. 0d = AGC is not selected 1d = AGC is selected |
DRE_AGC_SEL (TLV320ADC5120, TLV320ADC6120, PCM5120-Q1, and PCM6120-Q1) | DRE or AGC selection when is enabled for any channel. 0d = DRE is selected 1d = AGC is selected | |||
2 | Reserved | R/W | 0h | Reserved |
1 | DRC_EN | R/W | 0h | Dynamic range compression (DRC) same as DRE without gain compensation in digital 0d = DRC disabled. Device can be in DRE or AGC mode depending on DRE_AGC_SEL bit 1d = 1 DRC enabled. Device cannot be in DRE or AGC mode. |
0 | EN_AVOID_CLIP | R/W | 0h | Anti-clipper when channel gain > 0 dB and either of DRE, DRC or AGC mode enabled. 0d = Channel gain is maintained as per user programmed channel gain value 1d = Signal level is compressed to avoid clipping when channel gain > 0 dB and the signal level crosses the programmed threshold setting set in page-4. |