Wiki

This version is outdated by a newer approved version.DiffThis version (10 Feb 2021 13:09) was approved by Sanjeeva Reddy.

This is an old revision of the document!


Click here to return to the Basic page

Counter


Description

The Counter block can be used with a State Machine to process your input at a particular time interval, in ms. The counter starts from 0 by default or any other user-defined value if specified.

Targets Supported

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


Pins

Output

NameTypeDescription
OutputControlOutput channel

Configurable Parameters

GUI Parameter NameDefault ValueRangeFunction Description
Max1342177270 to 134217727This is the maximum value for the counter. If the counter reaches the maximum value, its output will stay at that value until it is reset. The value can be changed by clicking in the text field and typing a new value, or by clicking the adjacent up/down arrows.
step11 to 10000 This controls the rate at which the counter increments. The counter value will increase by the value in this field at the end of every audio sample. The value can be changed by entering the desired value in the text field or using the adjacent up/down arrows.
Init0 0 to 268435456This is the initial value of the counter, which is the starting value for the counter when it is reset. Enter the start count value in the Init field, or use the adjacent up/down arrows.
ResetFalseTrue/FalseResets the counter value to init value
PauseFalseTrue/FalseStarts or stops the counter increment.If the counter is stopped in mid-operation, its output value will freeze at its most recent value.

DSP Parameters

Parameter NameDescriptionADSP-214xx/SC5xx/215xx
MaxThis is the maximum value for the counter.Float
stepThe counter value will increase by the value at the end of every audio sample.Float
InitThis is the starting value for the counter when it is reset.Float
PauseStarts or stops the counter increment.Float
ResetResets the counter value to init valueFloat
resources/tools-software/sigmastudiov2/modules/basic/counter.1610948383.txt.gz · Last modified: 18 Jan 2021 06:39 by Krithika Manchale