You can either use interrupts, or you can use a loop where you poll conditions to perform different operations.
Just like Windows before dual processors, the PIC cannot multitask. It can only give time slices each task. It is up to you how to allocate the time slices.
Bookmarks