Wiki

This version (01 Apr 2024 13:49) was approved by John Joseph.The Previously approved version (03 Feb 2020 11:19) is available.Diff

Click here to return to the Sources page

Sawtooth Wave


Description


The Sawtooth Wave block generates a sawtooth(saw) wave at a constant level and at different frequencies.

Usage


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.

Targets Supported

NameADSP-214xxADSP-215xx/ADSP-SC5xxADAU145x/146x
Sawtooth Wave Block and Sample Block and Sample Sample

Pins

Output

NameTypeDescription
Output0ControlOutput channel 0

Configurable Parameters

GUI Parameter NameDefault ValueRangeFunction Description
Frequency5000 to 0.5* sample rateSets the frequency for sawtooth wave
OnOffFalseTrue/FalseEnabled/Disabled the algorithm for the channel, When the algorithm is disabled, the output pin will output a constant value 0.0

DSP Parameters

Parameter NameDescriptionADSP-214xx/SC5xx/215xxADAU145x/146x
SinSin value for generating a sawtooth wave at particular frequencyFixPoint2d30FixPoint8d24
CosCos value for generating a sawtooth wave at particular frequencyFixPoint2d30FixPoint8d24
Deltadelta value for generating a sawtooth wave at particular frequencyFloatFixPoint8d24
OnOffEnabled/Disabled the algorithmFloatInteger32

DSP Parameter Computation

Sin = sin⁡(2*π*fs/FS)
Cos = cos⁡(2*π*fs/FS)
delta = 4 * fs/FS
Where fs is frequency and FS is sampling rate

resources/tools-software/sigmastudiov2/modules/sources/sawtoothwave.txt · Last modified: 01 Apr 2024 13:49 by John Joseph