I am using Codevision to write code for an ATMEGA8. I have a timer interrupt that occurs every 800uSec. This is working great and I have it to check the status of an input pin every interrupt. Easy enough...
I also have a function with a hard coded delay using Codevision's "delay_ms" function. I use delay_ms(128) for a 128 millisecond delay.
So for my question: During the delay function, when an interrupt occurs, will the delay break, process the interrupt, then continue with the delay? Or will the interrupt not happen during a delay_ms function?
I am seeing what looks like the pin not being check as often as I was hoping for and I thought the delay function built into codevision may be the cause.
Any help would be appreciated. Thanks!