In the hypothetical situation, if I have ATmega 328, Sensor X to detect object and output device Y.
Response time of X is 60 ms
Response time of Y is 30 ms
Program flow for the system
How the atmega work with X and Y in context of timing?
Atmega is faster then X and Y. When sensor X detecte object , Does atmega wait for 60 ms to read X? And After that it turn on the device Y. Does it happens.