Search results

  1. L

    Teensy 4.1 Hardware counter with external input

    Thank you. I have used some older Teensy prior to this, but not on this hardware close level. They have incredible performance, and as I pushed the ESP32 to the limits I decided to migrate.
  2. L

    Teensy 4.1 Hardware counter with external input

    I eventually got this up and running based on a few snippets I found here and there, and with a little insight into the manual. Even though I seem to get the result I wanted, I am a bit frustrated that I don't really get this. Anyway; this is the working code: void configureCounter() {...
  3. L

    Teensy 4.1 Hardware counter with external input

    I have now dived into the manual. Cannot really get this working. I try following 52.6.1 "Selecting clock source" from the manual (page 3023). First, I am not interested in compare events. I just want to get the counter up and running. Pad B0_13 is supposedly pin 25 on the Teensy 4.1 board...
  4. L

    Teensy 4.1 Hardware counter with external input

    Hi Paul I had a brief look at the FreqMeasure library which seems to count a certain amount of pulses rather than counting for a certain time. I could however not see that I can attach an interrupt handler, but things would of course clear up a bit if I had a look at the source code. Edit: I...
  5. L

    Teensy 4.1 Hardware counter with external input

    Hi I am porting an application from ESP32 to Teensy 4.1 and I am getting stuck on this. What I want to achieve is this: * Use a hardware counter to count pulses on a pin (external source) * Use either a comparator or overflow to call an ISR when target count is reached * Not conflict with...
Back
Top