SLAAED8 October   2024 TAC5111 , TAC5112 , TAC5211 , TAC5212 , TAC5412-Q1 , TAD5112 , TAD5212

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Signal Generator 1 (SG1)
    1. 2.1 Signal Generator 1 Introduction
    2. 2.2 Signal Generator 1 Amplitude and Output Channels
    3. 2.3 Signal Generator 1 Frequency
    4. 2.4 Generating Register Coefficients Using PPC3
  6. 3ADSR Envelope Parameters
    1. 3.1 ADSR Introduction
    2. 3.2 Restart and Sustain Timers
    3. 3.3 Attack, Release, and Decay Timers
    4. 3.4 Sustain Level
    5. 3.5 ADSR Envelope Example Script
    6. 3.6 Ultrasonic Activity Detection (UAD) ADSR Mode
  7. 4Signal Generator 2 (SG2)
    1. 4.1 Signal Generator 2 Introduction
    2. 4.2 Signal Generator 2 Amplitude
    3. 4.3 Signal Generator 2 Frequency
    4. 4.4 Signal Generator 2 Modes
      1. 4.4.1 Manual Mode
      2. 4.4.2 Continuous Pulse Mode
      3. 4.4.3 One Shot Mode
  8. 5Summary

Sustain Level

Sustain level interval must not be mistaken for sustain timer interval. Refer to Figure 3-1 to spot the difference. The sustain level parameter is used to configure amplitude after decay time and before release time. Refer to Programmable Register Map for 32-bit ADSR Parameters to determine registers that configure sustain level.

The equation below generates register coefficient for sustain level:

Equation 14. Reg.Coeff=DEC2HEXMODROUNDk× 230, 0, 232,8

where k is the mixing volume coefficient ranging from 0 to 1. Here, 1 correlates to 2Vrms, full-scale. Find an example of the sustain level configuration in ADSR example script.

Table 3-4 Programmable Register Map for 32-bit ADSR Parameters

Parameter Name

Page Address

Register Address

Manual Mode

Continuous Pulse Mode

One Shot

Default Values

ADSR EN_DIS Note1C

40

cfg

na

na

0000 0000 (hex)

Restart Timer1C

50

na

cfg

na

100ms at 48ksps

Sustain Timer1C

54

na

cfg

cfg

10ms at 48ksps

Attack

Timer

1C

58

cfg

cfg

cfg

2.5ms at 48ksps

Release Timer1C

5C

cfg

cfg

cfg

2.5ms at 48ksps
Decay

Timer

1C

60

cfg

cfg

cfg

0ms at 48ksps
Sustain Level

1C

64

cfg

cfg

cfg

0dB

pwrup_delay

17

74

na

cfg

na

100ms at 48ksps