Search results

  1. D

    Teensy 4.1 glitch on digital interrupt

    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 queued interrupts will still fire (just with a...
  2. D

    Teensy 4.1 glitch on digital interrupt

    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 sufficient to catch these, but obviously that...
  3. D

    Teensy 4.1 glitch on digital interrupt

    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 encoder, as it signals at 5V, can't find it to...
  4. D

    Teensy 4.1 glitch on digital interrupt

    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 transition voltage should be above the logic low...
  5. D

    Teensy 4.1 glitch on digital interrupt

    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 (there's a 5:1 reduction gearhead on the motor...
Back
Top