Open fiurthorn opened 2 years ago
I vote for this enhancement as well 👍 It is almost essential for the user case I have ...
(My use case is a sensorless BLDC motor control, where the phase BEMF interrupts can arrive in any order, so I need to have the interrupt set for both edges, then in the handler I need to know which edge it was. It is not enough to sense the state of the pin, as it could bounce quite a bit..)
It does seem reasonable, but there are two issues:
So, not sure about this.
My use case is a sensorless BLDC motor control
Oof, that's a rather heavy duty use case! It may be reasonable to do this by directly manipulating registers, just so you know exactly what's happening. In fact, I believe some chips have direct support for these motors but it's certainly out of my area of expertise so can't really help you with this :)
@aykevl It's not a very heavy duty use case, if it can be implemented on an 8-bit Arduino Uno in C ... :)
The RP Pico I am using is 32-bit and 4 times the clock speed ..
it the normal use case of an JK latch (Flipflop).
I would find it interesting to have the event trigger passed along with it.