Hi all,
On the pyboard, is it possible to set up any of the pins to count external events? I know that I can do that with interrupts, but what if the count rate is so high that interrupts are no longer a viable option? I would basically like to use the hardware counter, and the chip supports that, but I have the feeling that those functions are not exposed at all in micropython.
Thanks,
Zoltán
counting external events
Re: counting external events
I put together an example in this thread which shows you how to do that:
viewtopic.php?f=6&t=3370
viewtopic.php?f=6&t=3370
Re: counting external events
Fantastic, many thanks, Dave! Indeed, one has to go to the bit level settings of the hardware. In any case, brilliant example, not only for the frequency counter, but also for the low-level manipulation of the hardware.