I'm working on programming an Atmega48 uC, I can do the delay on the uC but when the chip is actually in the delay it can not do anything else which is a problem. I'm monitoring 16 switches which can be pushed simultaneously or individually when a switch is pressed I produce a high output which lasts ~10ms. Problem is when 2 or more switches are pressed close together some switches are missed due to the uC working on the delay from an earlier switch. I thought about threading the code but I do not think the Atmega supports threads.
So what I thought about doing is producing a tiny pulse to a hardware circuit that would do the delay for me. Does that sound reasonable?
So what I thought about doing is producing a tiny pulse to a hardware circuit that would do the delay for me. Does that sound reasonable?