First off I would like to say thanks to the members of this board for helping me so far. I've been programming a 16f690 with my pickit2 successfully. I can make LED's do pretty much anything I want, thanks to the help of this forum.
Now I would like to make the PIC do various jobs depending on an input. I didn't know what to title this thread, so I just titled it multitasking. I don't know all of the language of PIC's yet. I would like the pic to perform a certain task on an LED, say pulsing it, while constantly monitoring an input. When the input pin changes states, say a high to a low, I want the PIC to perform a different task on different LED's for a short time and then go back to performing the original task.
What is this called? Is it called an interrupt? And can someone point me to an example of a program that does this. Thank you.
Now I would like to make the PIC do various jobs depending on an input. I didn't know what to title this thread, so I just titled it multitasking. I don't know all of the language of PIC's yet. I would like the pic to perform a certain task on an LED, say pulsing it, while constantly monitoring an input. When the input pin changes states, say a high to a low, I want the PIC to perform a different task on different LED's for a short time and then go back to performing the original task.
What is this called? Is it called an interrupt? And can someone point me to an example of a program that does this. Thank you.