This is an old revision of the document!
Click here to return to the Basic DSP page
Name | Format [int/dec] - [control/audio] | Function Description |
---|---|---|
Pin 0: Input | any - any | Input signal that will be compared to the threshold value |
Name | Format [int/dec] - [control/audio] | Function Description |
---|---|---|
Pin 0: Trigger | any - any | Outputs a flag after no signal has been present for a given amount of time |
GUI Control Name | Default Value | Range | Function Description |
---|---|---|---|
Threshold(dB) | -60 | [-150:0] | Sets the value the input will be compared to. If the input is below this value for a given time determined by “Trig Time(s)”, a flag will be output. |
Trig Time(s) | 120 | [2:200] | sets the amount of time, in seconds, that the signal level must be below the threshold before a flag is output. This value is an approximation. |
GUI Control Name | Compiler Name | Function Description |
---|---|---|
Threshold(dB) | thresholdSignalDetectAlg1 | Actual value written to the DSP when the value in the “Threshold(dB) box is changed. |
Trig Time(s) | time_constantSignalDetectAlg1 | Actual value written to the DSP when the value in the “Trig Time(s)” box is changed |
The following graph shows the output (red) of the Signal Detect cell based on a given input (blue). In this scenario the “Threshold(dB)” is set to '-60' and the “Trig Time(s)” is set to '6'. Notice how the output toggles to '1' after the silence following the audio signal, based on the “Trig Time(s)” value, and then returns back to '0' once the signal reappears.
In this example, the Signal Detection cell is being used to monitor the incoming audio signal to be processed by the equalizer. If the signal on both channels falls below the threshold for the duration of the “Trig Time(s)”
parameter, a flag will be output to GPIO_0. This can be used, for example, to power down unneeded parts of the system when no signal is present.
Toolbox Path | Level Detectors/Lookup Tables - Signal Detect - Signal Detection |
Cores Supported | AD194x ADAU170x ADAU144x ADAU176x |
“Grow Algorithm” Supported | yes |
“Add Algorithm” Supported | yes |
Subroutine/Loop Based | no |
Program RAM | 11 |
Data RAM | 4 |
Parameter RAM | 3 |