Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: maximum pulse-frequency from quadrature-encoders on Teensy 4.1

  1. #1
    Junior Member
    Join Date
    Oct 2020
    Posts
    1

    maximum pulse-frequency from quadrature-encoders on Teensy 4.1

    Hello everybody,

    the CPU-clock of the Tennsy 4.1 is real fast (600Mhz). What maxizum pulse-frequency from quadrature-encoders can the Teensy 4.1 handle properly when using two Interrupt-Pins? Or does the Teensy 4.1 have some special quadrature-encoder-hardware-counters?

    Could this maximum-frequency be shifted to higher values when using a encoder to counter interface chip? From a quick search I found the LS7083 / LS7084 which go up to 625 kHz. This seems not to be very fast. Does anybody know of chips that can cope with higherpulse-freuqnecies?

    best regards Stefan

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    7,917
    You might take a look at Chapter 55 of the T4 (IMXRT reference manual). Which if you have not already done so you can download from: https://www.pjrc.com/teensy/datasheets.html

    There is an encoder library (QuadEncoder) which ships with Teensyduino which uses this support.

    And manual says: Maximum count frequency equals the peripheral clock rate

  3. #3
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    1,215
    If you have a high speed application you could try this library from mjs513: https://forum.pjrc.com/threads/58478...ncoder-Library. It uses the built in hardware decoders and is very fast.

    What speed are you aiming at?

    Edit: ups cross post...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •