Wiki

The most recent version of this page is a draft.DiffThis version (10 Feb 2021 12:43) was approved by Sanjeeva Reddy.

This is an old revision of the document!


Click here to return to the Sources page

Triangle Wave


Description


The Triangle Wave block generates a triangle 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 triangle wave at different frequecies.

Targets Supported

NameADSP-214xx(Sample)ADSP-214xx(Block)ADSP-215xx/ADSP-SC5xx(Sample)ADSP-215xx/ADSP-SC5xx(Block)
triangle Wave Yes YesYes Yes

Pins

Output

NameTypeDescription
Output0ControlOutput channel 0

Configurable Parameters

GUI Parameter NameDefault ValueRangeFunction Description
Frequency5000 to 0.5* sample rateSets the frequency for triangle 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/215xx
SinSin value for generating a triangle wave at particular frequencyFloat
CosCos value for generating a triangle wave at particular frequencyFloat
Deltadelta value for generating a triangle wave at particular frequencyFloat
OnOffEnable/Disable the algorithmFloat

DSP Parameter Computation

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

/srv/wiki.analog.com/data/pages/resources/tools-software/sigmastudiov2/modules/sources/trianglewave.txt · Last modified: 13 May 2021 09:09 by Prasad Kamath