SLAAED8 October 2024 TAC5111 , TAC5112 , TAC5211 , TAC5212 , TAC5412-Q1 , TAD5112 , TAD5212
Registers B0_P28_R80 (0x50) to B0_P28_R83 (0x53) configure restart time. Registers B0_P28_R84 (0x54) to B0_P28_R87 (0x57) configure sustain time. Refer to Table 3-2.
The restart time is the time for a configured pulse to repeat, while the sustain time is the length of the pulse configured.
Restart and Sustain timers are based off the number of samples retrieved from an operating sampling frequency, fs. Restart time must always be configured to be longer than sustain time. Table 3-1 generates possible I2C configurations for both parameters based off a 48KHz sampling frequency. The desired time is generated based on scaling samples with respect to the sampling frequency. These two timers are not available in all SG2 modes.
ksps | Number of Samples Per Timer | I2C Command Script | Desired Time |
---|---|---|---|
48000 | d’480 | 0x000001E0 | 10ms |
48000 | d’4,800 | 0x000012C0 | 100ms |
48000 | d’48,000 | 0x0000BB80 | 1s |
48000 | d’480,000 | 0x00075300 | 10s |
The formula below generates a 32-bit hex register coefficients for both restart and sustain timers.
where k is the number of samples per timer.
Restart and sustain timers have been demonstrated in Continuous Pulse Mode example script. These are all 32-bit I2C commands. Refer to this image to locate restart and sustain timer GUI in PPC3. The scrolls generate hex values in I2C monitor.
Find more info on using PPC3 here Generating Register Coefficients Using PPC3.
Page | Register | Description | Reset value |
---|---|---|---|
0x1C | 0x50 | DAC_ADSR_RESTART_BYT1[7:0] | 0x00 |
0x1C | 0x51 | DAC_ADSR_ RESTART _BYT2[7:0] | 0x00 |
0x1C | 0x52 | DAC_ADSR_ RESTART _BYT3[7:0] | 0x00 |
0x1C | 0x53 | DAC_ADSR_ RESTART _BYT4[7:0] | 0x00 |
Page | Register | Description | Reset Value |
---|---|---|---|
0x1C | 0x54 | DAC_ADSR_SUSTAIN_BYT1[7:0] | 0x00 |
0x1C | 0x55 | DAC_ADSR_SUSTAIN _BYT2[7:0] | 0x00 |
0x1C | 0x56 | DAC_ADSR_SUSTAIN _BYT3[7:0] | 0x00 |
0x1C | 0x57 | DAC_ADSR_SUSTAIN _BYT4[7:0] | 0x00 |