Again, thanks for the reply. The section of code that I included is part of a much larger project that nearly uses all available memory. I'm just working on one section for learning purposes/practice. I thought an interrupt would be the right choice because the micro is scanning for the presence of light about once every 150us and I don't want the device to stop scanning while it is flashing a red LED for failure. I was hoping to use a separate asynchronous clock to control the red LED on time in the interrupt so the scanning continues to be counted and other pass/failures will be detected.
↧