Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 22625

Re: Creating or modifying existing algorithm

$
0
0

    Hello Dave,

 

  1. 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.
  2. 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]
  3. 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..
  4. First, click on Use advanced editor:

Advanced-edit.png

    Then click Attach:

Attach.png

Switch-count-sch_pic.png

     Given the less than perfect documentation, often I just play with the blocks to see how they work.

 

     Best regards,

 

     Bob


Viewing all articles
Browse latest Browse all 22625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>