This is an old revision of the document!
Click here to return to the Sources page
The Square Wave block generates a square 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 square wave at different frequencies.
Name | ADSP-214xx(Sample) | ADSP-214xx(Block) | ADSP-215xx/ADSP-SC5xx(Sample) | ADSP-215xx/ADSP-SC5xx(Block) |
---|---|---|---|---|
Square 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 square 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 square wave at particular frequency | Float |
Cos | Cos value for generating a square wave at particular frequency | Float |
OnOff | Enabled/Disabled the algorithm | Float |
Sin = sin(2*π*fs/FS)
Cos = cos(2*π*fs/FS)
Where fs is frequency and FS is the sampling rate