Search results

  1. K

    Teensy 4.1 pulse counter - down to 20 ns !

    Hi all ! Further investigation revealed that the 9ns/50Mhz performace with T4.1 was possible with 30ohm/20ohm voltage divider ONLY. I mean 50ohm seen from the Rigol source and 30ohm from the T4.1 pin 9.
  2. K

    Teensy 4.1 pulse counter - down to 20 ns !

    Well, the following is the whole .ino code. The "webpage.h" contains the React/TypeScript browser front end code, about 1500 lines long, which has to be converted to hex byte array to be included as .h file. I did it using an AI coding assistant - Gemini CLI. Even without the frontend code...
  3. K

    Teensy 4.1 pulse counter - down to 20 ns !

    No problem ! You may use the photos I posted above.
  4. K

    Teensy 4.1 pulse counter - down to 20 ns !

    One additional note: Since the time base accuracy of Rigol 912 Pro itself is specified as ±2 ppm, the measured 5 ppm offset may not be entirely from T4.1. YP
  5. K

    Teensy 4.1 pulse counter - down to 20 ns !

    Hello? It turned out that the pulse counting limit of T4.1 is far better than I originally thought. The figure below shows T4.1 can go as much as the Rigol DG 912 Pro waveform generator will go: 9 ns at 50 Mhz. There is not-so-random counting error of ~ 250Hz/50MHz = 5 ppm. This constant...
  6. K

    Teensy 4.1 pulse counter - down to 20 ns !

    Hi ! I'v done it mostly by vibe coding with Gemini 3 CLI. The code snippet relevant to the pulse counting is shown below. It is just a simple utilization of FreqCount function, no fancy logic. // Ensure the gate is set to the requested dwell in MICROSECONDS (Teensy 4.1 FreqCount uses usec)...
  7. K

    Teensy 4.1 pulse counter - down to 20 ns !

    Hello? I remember there was discussion for using Teensy 4.x as a fast pulse counter some years ago. Pictured below is the pulse counter I built using FreqCount function, and all I need is counting 1 us wide pulses, I kept reducing the pulse width until Teensy became erratic. I confirmed that It...
  8. K

    Fancy React/TypeScript app from Teensy Web server

    It is QNEthernet. #include <QNEthernet.h> #include <ArduinoJson.h> #include <FreqCount.h> #include <USBHost_t36.h> #include "webpage.h" The "webpage.h" includes the web page code. It's about 1600 lines of React/TS frontend code with some intelligent features, but still...
  9. K

    Fancy React/TypeScript app from Teensy Web server

    I have been using LabView to control my lab setup for years. But you all know LV is ugly and expensive, and wastes a lot of resources just to do simple things like USB communication to power supplies, pulse counters, picoammeter, etc. By the way, I have fancied beautiful React/TS app running...
Back
Top