This is an old revision of the document!
Click here to return to the Basic page
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.
Name | ADSP-214xx(Sample) | ADSP-214xx(Block) | ADSP-215xx/ADSP-SC5xx(Sample) | ADSP-215xx/ADSP-SC5xx(Block) |
---|---|---|---|---|
Counter | Yes | Yes | Yes | Yes |
Name | Type | Description |
---|---|---|
Output | Control | Output channel |
GUI Parameter Name | Default Value | Range | Function Description |
---|---|---|---|
Max | 134217727 | 0 to 134217727 | This 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. |
step | 1 | 1 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. |
Init | 0 | 0 to 268435456 | This 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. |
Reset | False | True/False | Resets the counter value to init value |
Pause | False | True/False | Starts or stops the counter increment.If the counter is stopped in mid-operation, its output value will freeze at its most recent value. |
Parameter Name | Description | ADSP-214xx/SC5xx/215xx |
---|---|---|
Max | This is the maximum value for the counter. | Float |
step | The counter value will increase by the value at the end of every audio sample. | Float |
Init | This is the starting value for the counter when it is reset. | Float |
Pause | Starts or stops the counter increment. | Float |
Reset | Resets the counter value to init value | Float |