Been reading up in interrupts and I'm still confused. From what I've read you can have several interrupts and they basically allow you to run something simultaneously whilst the main program continues from the point it was interrupted. Is this like the gosub command ?
I noted that it states that pause etc can delay the resume so what would be the difference in something like the following?
andCode:main: pin goes high pause 2000 pin goes low display the time on an LCD
in the second bit of code, would the pin be high whilst the time is shown on the LCD ? or would it wait for the pin to go low before resuming back to the main part of the program... ??Code:main: interrupt one display the time on LCD interrupt one: pin goes high pause 2000 pin goes low resume
Sorry if this is very basic, but I've never written a routine with interrupts.




Bookmarks