SLAAED8A October 2024 – July 2026 TAC5111 , TAC5112 , TAC5211 , TAC5212 , TAC5412-Q1 , TAD5112 , TAD5212
Since the SG2 generates a chirp signal, the user would need to configure a start frequency fstart and a frequency increment Δf for each sample. The resulting output is a signal whose frequency is swept from fstart to (fstart + NchirpΔf), Nchirp being the number of samples in a single chirp pulse.
The chirp signal stays at fstart until the signal is ramped up and settles to the Sustain Level. Then the signal frequency changes at a rate of Δf per sample. When the signal ramps down, it retains the last updated frequency.
These two frequencies are programmed through coefficients x and y, described in the equations below:
with fs being the sampling rate.
The chirp frequency can range from 0 to fs/2. Hence, the following equations need to be kept in mind when programming the chirp parameters:
Where
Hence, .
“Sustain Time” is the pulse duration, described in detail in Sustain/Restart Timers.
It is not recommended to let the signal frequency at any point exceed beyond fs/2, as this results in aliasing. With sampling rates higher than 48kHz,the SG2 generator can be used as an Ultrasonic Activity Generator (UAG), generating chirp pulses outside of the 20Hz-20kHz audible band.
To generate a sustained single-tone signal, users can configure the SG2 to operate in Manual Mode (refer Section 3.4.1). The fstart can be programmed to the desired frequency, with the Δf programmed to 0Hz.
The values of x and y are then written into the registers described in Table 3-2, by:
| Page | Register | Signal Generator Start/Δ Frequency | Value |
|---|---|---|---|
| 0x17 | 0x7C | Start Frequency = 16kHz (0x2182A470) | X[31:24] |
| 0x17 | 0x7D | X[23:16] | |
| 0x17 | 0x7E | X[15:8] | |
| 0x17 | 0x7F | X[7:0] | |
| 0x18 | 0x08 | Δ Frequency = 0Hz (0x00000000) | Y[31:24] |
| 0x18 | 0x09 | Y[23:16] | |
| 0x18 | 0x0A | Y[15:8] | |
| 0x18 | 0x0B | Y[7:0] |