Hi all,
I've arduino UNO that I have been using for project. Now I want to use this to count missed pulses. I'm generating the pulse from external micro that generates 10usec width every 25 ms. I want to count if this pulses going to have missed pulses for 28 days. I was thinking to use a timer to see if it can stamp time when it missed that pulse, and also to use store the data in different registers every other day.
Yes the question is how can I do it? Do I have to use interrupt?
I would say yes, you should use an interrupt. Otherwise, you would need to ensure your loop speed is consistently higher than 100,000 iterations per second in order to catch a 10µs pulse. Your interrupts will occur at only 40Hz (25ms interval), which will use very little resources (less than 0.001%).