Hello Dave,
- I ran into the same trouble with the Pulse Counter block -- apparently it only works with one-sample wide pulses, which is what the Zero-Cross Detector provides. Thus, we can also use the Zero-Cross Detector to condition a switch input to the counter. Problem is, the Zero-Cross block outputs a pulse for both up and down transitions. Thus in the new circuit shown below, comparator ABCD2 gates only the OFF-to-ON switch transitions to the counter. The count advances for each upward throw of the switch.
- Currently the best SigmaDSP documentation is at the wiki, SigmaStudio Toolbox [Analog Devices Wiki] For example, number formats for the DSP Readback block are explained at DSP Readback [Analog Devices Wiki]
- Often, SigmaDSP logic blocks accept any non-zero input as a "1". This makes interfacing the blocks easier -- as then any number format works for a logic high, while a zero in any format is always a zero. Thus I just re-used the modulo-count number for the enable instead of adding another source..
- First, click on Use advanced editor:
Then click Attach:
Given the less than perfect documentation, often I just play with the blocks to see how they work.
Best regards,
Bob