Sustainable IRQ rate on Pi Pico #9121
Answered
by
robert-hh
gmrza
asked this question in
Using MicroPython
-
I am looking at using an ISR for the first time with Micropython to read a Hall Effect flow sensor using a Pi Pico. One thing I wanted to check is what is a reasonable expectation in terms of sustained rate of interrupts which can be handled comfortably. |
Beta Was this translation helpful? Give feedback.
Answered by
robert-hh
Aug 28, 2022
Replies: 1 comment 4 replies
-
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
gmrza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
50Hz is no problem at all. Attached you see a timing diagram taken with a Pico at standard CPU clock of a timer interrupt running at 10kHz, where the callback just toggles a Pin. Toggling a Pin takes much longer than incrementing a counter. Using threading, you can run the ISR in one core and other code in the other core, but may not even that is needed.