That looks like the same behaviour I was experiencing with my encoder. If multiple fast transitions occur, they will be queued in the NVIC, so the interrupt will trigger multiple times. Adding a delay to the interrupt won't fix the issue, as the...
Thanks for all your thoughts folks! I've added a simple deglitch filter using a 6us one-shot timer to ensure the pulse is still high after a PC interrupt, which seems to have fixed the issue.
I had assumed the internal Schmitt triggers would be...
Sorry, I forgot to put that in the post itself - I'm using a Teensy 4.1, 600 MHz clock setting, with a ~5.6k resistor between the index pulse line and the GPIO pin to current limit (I read a post somewhere from Paul about doing this with the AMT...
I did wonder about that; my understanding was that Paul changed the attachInterrupt routine to automatically turn on hysteresis, so it shouldn't need to be manually configured, but I can give that a try.
Looking at the IMXRT1060 datasheet, the...
Hi all,
I've been working on setting up a simple motor control system, using a BLDC with an AMT102 encoder and a Teensy 4.1 (600 MHz clock speed). The encoder is set to 100 PPR, with the motor's RPM below the max RPM for this encoder resolution...