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 onboard Ethernet
* Reset/restart counter when target has been reached
I do not want to read/compare the value of the hardware counter in software. I would really want this comparison to be made in hardware if possible. Does anyone have a working example on achieving this? I am very flexible on pin selection since I am making an adapter board switching from the previos ESP32.
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 onboard Ethernet
* Reset/restart counter when target has been reached
I do not want to read/compare the value of the hardware counter in software. I would really want this comparison to be made in hardware if possible. Does anyone have a working example on achieving this? I am very flexible on pin selection since I am making an adapter board switching from the previos ESP32.