PIC Interrupts vs. Polling

Data & Observations
           Time For Blinking LEDs! So the end effect that we get here is actually not very impressive since we built a simple system to start with. However, the point is that once you understand how interrupts were used to make this system work, you'll be able to use them effectively with other hardware modules.


           As was expected, the moment a change is detected on PORTB - RB0 of the PIC, the interrupt is triggered and interrupt service routine (ISR) run. After the ISR runs, everything returns to main exactly as it was before, that's why the LED bar doesn't always start from the same place when returning from the ISR.



;