This is an old revision of the document!
Click here to return to the Sources page
The Sawtooth Wave block generates a sawtooth(saw) wave at a constant level and at different frequencies.
This block has checkbox to enabled or disabled the algorithm. Check the box to enable this algorithm. It has the numeric text box to edit the frequency to generate the sawtooth wave at different frequecies.
Name | ADSP-214xx(Sample) | ADSP-214xx(Block) | ADSP-215xx/ADSP-SC5xx(Sample) | ADSP-215xx/ADSP-SC5xx(Block) |
---|---|---|---|---|
Sawtooth Wave | Yes | Yes | Yes | Yes |
Name | Type | Description |
---|---|---|
Output0 | Control | Output channel 0 |
GUI Parameter Name | Default Value | Range | Function Description |
---|---|---|---|
Frequency | 500 | 0 to 0.5* sample rate | Sets the frequency for sawtooth wave |
OnOff | False | True/False | Enabled/Disabled the algorithm for the channel, When the algorithm is disabled, the output pin will output a constant value 0.0 |
Parameter Name | Description | ADSP-214xx/SC5xx/215xx |
---|---|---|
Sin | Sin value for generating a sawtooth wave at particular frequency | Float |
Cos | Cos value for generating a sawtooth wave at particular frequency | Float |
Delta | delta value for generating a sawtooth wave at particular frequency | Float |
OnOff | Enabled/Disabled the algorithm | Float |
Sin = sin(2*π*fs/FS)
Cos = cos(2*π*fs/FS)
delta = 4 * fs/FS
Where fs is frequency and FS is sampling rate