Name | Format [int/dec] - [control/audio] | Function Description |
---|---|---|
Pin 0: Start/Stop | int - control | When this pin is high, the algorithm is counting the Pulse input. When it is low, the algorithm holds the last count value |
Pin 1: Reset | int - control | When this pin is high, it clears the count value back to zero. |
Pin 2: Pulse Input | int - control | Input signal to monitor and count pulses |
Name | Format [int/dec] - [control/audio] | Function Description |
---|---|---|
Pin 0: Count Output | int - control | Count Value indicating number of pulses |
The purpose of the Pulse counter, is to count the number of pulses during a specified amount of time. The time is dictated by the signal on the start/stop pin. When the start/stop pin is high, the algorithm is counting pulses, otherwise the last count value is output. The reset pin clears the count value and counting can resume from 0 whenever the start pin is high.
The graph below shows the interaction between the start/stop and reset pins when a pulse train signal is present on the Pulse Input pin. The reset signal is in red. The start/stop signal is in blue, and the counter output is the second graph in yellow.
The Pulse Counter is very useful to use with the Value Cross Detection algorithm. For an application in which you need to monitor the number of value-crossings (zero-cross counter) during a specified time the two blocks together can help achieve this. The following image uses a sine tone input, on/off switches, Pulse Counter, Readback cell, and GPIO output.
Toolbox Path | Counters - Counters - Pulse Counter |
Cores Supported | AD1940 ADAU170x ADAU144x ADAU176x ADAU178x |
“Grow Algorithm” Supported | no |
“Add Algorithm” Supported | no |
Subroutine/Loop Based | no |
Program RAM | 12 |
Data RAM | 3 |
Parameter RAM | 0 |