SLAAED8 October 2024 TAC5212 , TAC5412-Q1
Registers B0_P17_R104 (0x68) to B0_P17_111 (0x6F) in Table 2-1 configure amplitude levels and select output channels for SG1.
Two ways to configure amplitude are executing I2C scripts or using PPC3 mixing volume coefficients.
Table 2-1 demonstrates how these two methods increase or decrease amplitude in steps of 0.56dB gain. Here, I2C scripts require 16-bit registers per channel. Each amplitude and channel selection configuration requires executing a 32-bit I2C command.
This example script template places each analog output channel of OUT1 and OUT2 in a 32-bit I2C commands. This template applies to all SG2 registers as well.
The full-scale value in Vrms and max gain in dB correlates to 0x40000. This makes up 16-bit of the 32-bit I2C command.
#Example template to configure SG1 to OUT1P&M and OUT2P&M. Same format #applies to SG2 registers.
#w a0 68 [OUT1M] [OUT1M] [OUT1P] [OUT1P]
#w a0 6C [OUT2M] [OUT2M] [OUT2P] [OUT2P]
#w xx XX [15:8] [7:0] [15:8] [7:0]
# This is a 32-bit I2C command. Here, OUT1P has full gain while OUT1M has #no gain.
w a0 68 00 00 40 00
SG1 example script has an example on amplitude and channel selection using I2C commands. PPC3 provides a range of coefficients between 1 to 0. To predict gain in dB through these coefficients, use...
The full-scale value in Vrms and max gain in dB correlates to a coefficient of 1.
Figure 2-2 demonstrates how signal generators use mixing volume coefficients to configure amplitude in PPC3.
Table 2-4 shows how to navigate to the tone generator GUI.
Decimal Value | 16-bit I2C command | Mixing Volume Coefficient | Gain dB | Vrms |
---|---|---|---|---|
d16384 | 0x4000 | 1 | 0dB | 2Vrms |
d8192 | 0x2000 | 0.5 | -6dB | 1Vrms |
d64 | 0x0100 | 0.016 | -35.90dB | - |
d0 | 0x0000 | - | - | - |
Page | Register | Description | Reset Value |
---|---|---|---|
0x11 | 0x68 | Side Chain DAC Mixer, SG1 to OUT1M coefficient byte [15:8] | 0x00 |
0x11 | 0x69 | Side Chain DAC Mixer, SG1 to OUT1M coefficient byte [7:0] | 0x00 |
0x11 | 0x6A | Side Chain DAC Mixer, SG1 to OUT1P coefficient byte [15:8] | 0x00 |
0x11 | 0x6B | Side Chain DAC Mixer, SG1 to OUT1P coefficient byte [7:0] | 0x00 |
0x11 | 0x6C | Side Chain DAC Mixer, SG1 to OUT2M coefficient byte [15:8] | 0x00 |
0x11 | 0x6D | Side Chain DAC Mixer, SG1 to OUT2M coefficient byte [7:0] | 0x00 |
0x11 | 0x6E | Side Chain DAC Mixer, SG1 to OUT2P coefficient byte [15:8] | 0x00 |
0x11 | 0x6F | Side Chain DAC Mixer, SG1 to OUT2P coefficient byte [7:0] | 0x00 |