As you have correctly surmised, trying to detect a 1uS pulse by polling a port pin is not going to be reliable.
Use an external (or pin change) interrupt instead and you will not miss any of these short pulses.
As you have correctly surmised, trying to detect a 1uS pulse by polling a port pin is not going to be reliable.
Use an external (or pin change) interrupt instead and you will not miss any of these short pulses.
Bookmarks