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

Signal Generator 2 Frequency

Registers B0_P23_R124 (0x7C) to B0_P23_R127 (0x7F) configure SG2 Chirp Start Frequency. Registers B0_P24_R08 (0x08) to B0_P24_R11 (0x0B) configure SG2 Chirp Delta Frequency. Refer to Table 4-2.

Although amplitude and channel selection methods are the same for SG1 and SG2, both differ in frequency configuration. Chirp Start Frequency and Chirp Delta Frequency make up SG2 frequency parameters. These parameters are 32-bit I2C commands each and are not dependent on each other.

The chirp start frequency is the frequency in the first sample of one second of a sampled signal per an operating sampling rate. This is can be considered the beginning frequency.

The chirp delta frequency is the frequency rise per sample up until the last sample within a defined time period. Per each sample, the next frequency rise is added to the last frequency in the previous sample. This parameter forces frequency sweeps through the start frequency. This can also be configured to not create any sweeps.

Once these parameters are set, this applies to any output channels for SG2. Use these formulas to generate 32-bit I2C scripts to configure SG2 frequency.

Equation 17. Chirp Start Frequency Constant = 2πChirp Start FrequencyFsample rate, (rad)
Equation 18. Chirp Delta Frequency Constant = 2πChirp Delta FrequencyFsample rate, (rad)
Equation 19. Reg.Coeff=DEC2HEXMODROUNDk× 228, 0, 232,8

where k is either the Chirp Start Frequency Constant or the Chirp Delta Frequency Constant. This formula applies to generating hex coefficients for both frequency parameters.

In PPC3, SG2 frequency is set using the Chirp Generator frequency scroll. Figure 4-2 is an image of SG2 GUI.

TAC5412QRGERQ1 SG2 Frequency Configuration GUIFigure 4-2 SG2 Frequency Configuration GUI
Table 4-2 Programmable Register Map for SG2 Chirp Start Frequency

Page

Register

Description

Reset Value

0x17

0x7C

ASIOUT_BYT1[7:0]

0x00

0x17

0x7D

ASIOUT_BYT2[7:0]

0x00

0x17

0x7E

ASIOUT_BYT3[7:0]0x00
0x170x7FASIOUT_BYT4[7:0]0x00
Table 4-3 Programmable Register Map for SG2 Chirp Delta Frequency

Page

Register

Description

Reset Value

0x18

0x08

ASIOUT__BYT1[7:0]

0x00

0x18

0x09

ASIOUT_BYT2[7:0]

0x00

0x18

0x0A

ASIOUT_BYT3[7:0]0x00
0x180x0BASIOUT_BYT4[7:0]0x00