![](http://datasheet.mmic.net.cn/370000/TAS5028PAGR_datasheet_16735503/TAS5028PAGR_42.png)
TAS5028 Controls and Status
34
SLES112 — June 2004
TAS5028
Strategy: Use the TAS5028 bank switching feature to allow for managing and switching three banks
associated with the three sample rates, 32 kHz (Bank 1), 44.1 kHz (Bank 2), and 48 kHz (Bank 3).
One possible algorithm is to generate, load, and automatically manage bank switching for this problem:
Generate bank-related coefficients (see above) for sample rates 32 kHz, 44.1 kHz, and 48 kHz and include
the same in the micro-based TAS5028 I
2
C firmware.
On TAS5028 power up or reset, the micro runs the following TAS5028 Initialization code:
-
Update Bank 1 (Write 0x00048040 to register 0x40).
-
Write bank-related I
2
C registers with appropriate values for Bank 1.
-
Write Bank 2 (Write 0x00058040 to register 0x40).
-
Load bank-related I
2
C registers with appropriate values for Bank 2.
-
Write Bank 3 (Write 0x00068040 to register 0x40).
-
Load bank-related I
2
C registers with appropriate values for Bank 3.
-
Select automatic bank switching (write 0x00038040 to register 0x40)
Now when the audio media changes, the TAS5028 automatically detects the incoming sample rate and
automatically switches to the appropriate bank.
In this example any sample rates other then 32 kHz and 44.1 kHz will use Bank 3. If other sample rates are
used, then the banks need to be set-up differently.
2.5.6 Bank Switching Example 2
Problem: The audio system uses all of the sample rates supported by the TAS5028. How can the automatic
bank switching be set up to handle this situation
Strategy: Use the TAS5028 bank switching feature to allow for managing and switching three banks
associated with sample rates as follows:
Bank 1: Coefficients for 32 kHz, 38 kHz, 44.1 kHz, and 48 kHz
Bank 2: Coefficients for 88.2kHz and 96 kHz
Bank 3: Coefficients for 176.4 kHz and 192 kHz
One possible algorithm is to generate, load, and automatically manage bank switching for this problem:
Generate bank-related coefficients for sample rates 48 kHz (Bank 1), 96 kHz (Bank 2), and 192 kHz (Bank
3) and include the same in the micro-based TAS5028 I
2
C firmware.
On TAS5028 power-up or reset, the micro runs the following TAS5028 Initialization code:
-
Update Bank 1 (Write 0x0004F00C to register 0x40).
-
Write bank-related I
2
C registers with appropriate values for Bank 1.
-
Write Bank 2 (Write 0x0005F00C to register 0x40).
-
Load bank-related I
2
C registers with appropriate values for Bank 2.
-
Write Bank 3 (Write 0x0006F00C to register 0x40).
-
Load bank-related I
2
C registers with appropriate values for Bank 3.
-
Select automatic bank switching (Write 0x0003F00C to register 0x40)
Now when the audio media changes, the TAS5028 automatically detects the incoming sample rate and
automatically switches to the appropriate bank.