STA326
8.6.17 Coefficient Write Control Register (Address 26h)
D7
D6
D5
D4
D3
RA
0
D2
R1
0
D1
WA
0
D0
W1
0
Coefficients for EQ, Mix and Scaling are handled internally in the STA326 via RAM. Access to this RAM
is available to the user via an I2C register interface. A collection of I2C registers are dedicated to this func-
tion. First register contains the coefficient base address, five sets of three registers store the values of the
24-bit coefficients to be written or that were read, and one contains bits used to control the read or write
of the coefficient (s) to RAM. The following are instructions for reading and writing coefficients.
8.7 Reading a coefficient from RAM
■ write 8-bits of address to I2C register 16h
■ write ‘1’ to bit R1 (D2) of I2C register 26h
■ read top 8-bits of coefficient in I2C address 17h
■ read middle 8-bits of coefficient in I2C address 18h
■ read bottom 8-bits of coefficient in I2C address 19h
8.8 Reading a set of coefficients from RAM
■ write 8-bits of address to I2C register 16h
■ write ‘1’ to bit RA (D3) of I2C register 26h
■ read top 8-bits of coefficient in I2C address 17h
■ read middle 8-bits of coefficient in I2C address 18h
■ read bottom 8-bits of coefficient in I2C address 19h
■ read top 8-bits of coefficient b2 in I2C address 1Ah
■ read middle 8-bits of coefficient b2 in I2C address 1Bh
■ read bottom 8-bits of coefficient b2 in I2C address 1Ch
■ read top 8-bits of coefficient a1 in I2C address 1Dh
■ read middle 8-bits of coefficient a1 in I2C address 1Eh
■ read bottom 8-bits of coefficient a1 in I2C address 1Fh
■ read top 8-bits of coefficient a2 in I2C address 20h
■ read middle 8-bits of coefficient a2 in I2C address 21h
■ read bottom 8-bits of coefficient a2 in I2C address 22h
■ read top 8-bits of coefficient b0 in I2C address 23h
■ read middle 8-bits of coefficient b0 in I2C address 24h
■ read bottom 8-bits of coefficient b0 in I2C address 25h
8.9 Writing a single coefficient to RAM
■ write 8-bits of address to I2C register 16h
■ write top 8-bits of coefficient in I2C address 17h
■ write middle 8-bits of coefficient in I2C address 18h
■ write bottom 8-bits of coefficient in I2C address 19h
■ write 1 to W1 bit in I2C address 26h
35/43