Measuring pulse shorter than 1 microsecond

Author Message

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 08:21am 07 Sep 2022      

  Mixtel90 said  

Well, you would because, of course, you can buy those a lot cheaper than these...

Exactly, because we're talking minutes of development.

One Cog (CPU) dedicated to this purpose:

Exact 100mS sampling period (loop) and use WAITPEQ (wait-pin-equal) and WAITPNE (wait-pin-not-equal) to count the transitions.

Other cogs can be handling everything else such as comms, SD-card, VGA, etc.
All in BASIC