pulsin

You may have seen my post about pulsin in the picaxe forum where I have a problem with pulsin needing a start edge and a finish edge to time I would like to be abe to time from when pulsin (or some new command)is called to when a pulse ends.
Barry
 

womai

Senior Member
You could use a regular D-Flip-Flop (DFF), with the inverting output wired back to the input. It also needs a reset input. This setup acts as a frequency divider, i.e. each pulse (high-going transition changes (toggles) the output state. Connect an output of the Picaxe to the reset input of the DFF, and an input to the true (non-inverted) output of the DFF. The flow would be:

(1) re-set the flip-flop by pulling the DFF's reset input high

(2) measure the output of the DFF using the pulsin command. The width of the pulse is the distance between the two rising edges of your initial pulses.

The 74HC74 would be a suitable DFF.

Wolfgang


(2) connect
 
Top