sta335bwqs STMicroelectronics, sta335bwqs Datasheet - Page 59

no-image

sta335bwqs

Manufacturer Part Number
sta335bwqs
Description
2.1-channel High-efficiency Digital Audio System With Qsound Qhd?
Manufacturer
STMicroelectronics
Datasheet
STA335BWQS
7.12.18
Writing a set of coefficients to RAM
1.
2.
3.
4.
5.
6.
7.
8.
9.
10. Write bottom 8-bits of coefficient a1 in I
11. Write top 8-bits of coefficient a2 in I
12. Write middle 8-bits of coefficient a2 in I
13. Write bottom 8-bits of coefficient a2 in I
14. Write top 8-bits of coefficient b0 in I
15. Write middle 8-bits of coefficient b0 in I
16. Write bottom 8-bits of coefficient b0 in I
17. Write 1 to WA bit in I
The mechanism for writing a set of coefficients to RAM provides a method of updating the
five coefficients corresponding to a given biquad (filter) simultaneously to avoid possible
unpleasant acoustic side-effects. When using this technique, the 6-bit address specifies the
address of the biquad b1 coefficient (for example, 0, 5, 10, 20, 35 decimal), and the
STA335BWQS generates the RAM addresses as offsets from this base value to write the
complete set of coefficient data.
User-defined EQ
The STA335BWQS provides the ability to specify four EQ filters (biquads) per each of the
two input channels. The biquads use the following equation:
where Y[n] represents the output and X[n] represents the input. Multipliers are 24-bit signed
fractional multipliers, with coefficient values in the range of 0x800000 (-1) to 0x7FFFFF
(0.9999998808).
Coefficients stored in the user defined coefficient RAM are referenced in the following
manner:
where n represents the channel and the m the biquad number. For example C2H41 is the b
coefficient in the fourth biquad for channel 2.
Write 6-bits of starting address to I
Write top 8-bits of coefficient b1 in I
Write middle 8-bits of coefficient b1 in I
Write bottom 8-bits of coefficient b1 in I
Write top 8-bits of coefficient b2 in I
Write middle 8-bits of coefficient b2 in I
Write bottom 8-bits of coefficient b2 in I
Write top 8-bits of coefficient a1 in I
Write middle 8-bits of coefficient a1 in I
Y[n] = 2(b
= b
CnHm0 = b
CnHm1 = b
CnHm2 = -a
CnHm3 = -a
CnHm4 = b
0
X[n] + b
0
/2)X[n] + 2(b
1
2
0
1
1
2
/2
/2
X[n-1] + b
/2
2
C address 0x26.
2
1
X[n-2] - a
/2)X[n-1] + b
1
Y[n-1] - a
2
2
2
2
2
2
C register 0x16.
C address 0x17.
C address 0x1A.
C address 0x1D.
C address 0x20.
C address 0x23.
2
X[n-2] - 2(a
2
2
2
2
2
2
2
2
2
2
C address 0x18.
C address 0x1B.
C address 0x1E.
C address 0x21.
C address 0x24.
C address 0x19.
C address 0x1C.
C address 0x1F.
C address 0x22.
C address 0x25.
2
Y[n-2]
1
/2)Y[n-1] - a
2
Y[n-2]
Register description
59/72
2

Related parts for sta335bwqs