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

One Shot Mode

SG2 in One Shot Mode generates a single pulse with a defined sustain time interval. Refer to Section 3.2. To initiate the pulse again, users must execute the entire script as is. This mode mostly requires the sustain timer configuration.

There is no restart time configuration in One Shot Mode. Other ADSR parameters applicable to this mode are mentioned in Table 3-4.

Key: w a0 XX YY ==> write to I2C address 0xa0, to register 0xXX, data 0xYY 
# # ==> comment delimiter 
#
#The following list gives an example sequence of items that must be #executed in the time between powering the device up and reading data #from the device. Note that there are other valid sequences depending #on which features are used.
#See the corresponding EVM user guide for jumper settings and audio #connections.
#
# Line-Out Fully-Differential 2-channel : OUT1P_M- Ch1, OUT2P_M- Ch2. 
# FSYNC = 48 kHz (Output Data Sample Rate), BCLK = 12.288 MHz (BCLK/FSYNC = 256) ################################################################### 
#one shot mode	
#repeat script to generate pulse again 

w a0 01 01	# device reset
	
w a0 00 00	# locate page 0x00
w a0 02 09	# come out of sleep mode 
                # with VREF and DREG up	
	
w a0 00 01	# locate page 0x01
w a0 2d 04	# enable the chirp only
	
w a0 00 17	# locate page 0x17
w a0 7c 02 18 2a 47	# chirp start frequency, 1khz
	
w a0 00 18	#locate page 0x18
w a0 08 00 35 9d d3	# chirp delta frequency of 100 Hz
	
w a0 08 00 00 00 00	# chirp delta frequency is set to zero
	
w a0 00 1c	#locate page 0x1c
w a0 40 ff ff ff ff # adsr_note; write this code to generate a chirp 
                    #and initiate the signal again with 0x01,	
                    #the signal will last based on the sustain timer set 

#restart	
w a0 50 ff ff ff ff  # restart_timer	
	
#sustain	
#w a0 54 00 00 5d c0	#24000 samples at 500ms
w a0 54 00 00 12 c0 # 480 samples 100ms default	
	
	
w a0 00 17	# locate page 0x17
w a0 74 FF FF FF FF # power up delay continued	
	
w a0 00 11 # locate page 0x11	
w a0 70 3F FF 3F FF	# Please refer the table to set volumes #accordingly
w a0 74 0F FF 0F FF	# Please refer the table to set volumes        #accordingly
	
w a0 00 00	# locate page 0x00
w a0 76 0c	# enable 2 DAC channels
w a0 78 40	# enable DAC
w a0 40 00 00 00 01	#adsr enable note. 
TAC5412QRGERQ1 SG2
                                                  One Shot Mode Scope Capture: 1KHz Signal at 2Vrms,
                                                  Full-Scale Figure 4-6 SG2 One Shot Mode Scope Capture: 1KHz Signal at 2Vrms, Full-Scale