sta333bwqs13tr STMicroelectronics, sta333bwqs13tr Datasheet - Page 56

no-image

sta333bwqs13tr

Manufacturer Part Number
sta333bwqs13tr
Description
2.1-channel High-efficiency Digital Audio System With Qsound Qhd
Manufacturer
STMicroelectronics
Datasheet
Register description
6.12.18
56/71
Writing a single coefficient to RAM
1.
2.
3.
4.
5.
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
STA333BWQS generates the RAM addresses as offsets from this base value to write the
complete set of coefficient data.
User-defined EQ
The STA333BWQS 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).
Write 6-bits of address to I
Write top 8-bits of coefficient in I
Write middle 8-bits of coefficient in I
Write bottom 8-bits of coefficient in I
Write 1 to W1 bit in I
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
0
X[n] + b
0
/2)X[n] + 2(b
1
X[n-1] + b
2
2
C address 0x26.
C address 0x26.
2
1
X[n-2] - a
/2)X[n-1] + b
2
C register 0x16.
2
C address 0x17.
1
Y[n-1] - a
2
2
2
2
2
2
C register 0x16.
2
2
C address 0x17.
C address 0x1A.
C address 0x1D.
C address 0x20.
C address 0x23.
C address 0x18.
2
C address 0x19.
X[n-2] to 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]
STA333BWQS

Related parts for sta333bwqs13tr