ausserirdischesindgesund
Member
I want to count two or three external signals that deliver pulses to the MCU, without ever missing one count.
Currently I am using a Arduino Mega 2560, but sadly it only has one counter input connected (T5 to pin 47). I have read that the Seeduino mega does break out more counters, but I am not sure how easy it would be to get one in Europe.
Now I understand that counters are very hardware dependent, and will probably look completely different on the ARM CPUs of Teensy 3.x or 4.0. Even on the AVR it was probably the most complex feature I ever used.
How difficult is it to do stuff like this (count the pulses on a pin, trigger an interrupt when count reaches 1000) on the Teensy? And should I choose the 3.2 or the new 4.0, or will it make no practical difference?
Thanks in advance,
Ralph
Currently I am using a Arduino Mega 2560, but sadly it only has one counter input connected (T5 to pin 47). I have read that the Seeduino mega does break out more counters, but I am not sure how easy it would be to get one in Europe.
Now I understand that counters are very hardware dependent, and will probably look completely different on the ARM CPUs of Teensy 3.x or 4.0. Even on the AVR it was probably the most complex feature I ever used.
How difficult is it to do stuff like this (count the pulses on a pin, trigger an interrupt when count reaches 1000) on the Teensy? And should I choose the 3.2 or the new 4.0, or will it make no practical difference?
Thanks in advance,
Ralph