2. Timer 0
• The PIC 18 has two to five timers (depends on family)
• They can be used as
• Timer to generate time delay
• Counters count event happening outside the
microcontroller.
16. Interrupt Programming
• Interrupt
• The program associated with interrupt is called the interrupt service routine
(ISR) or interrupt handler.
• Polling
• The microcontroller continuously monitors the status of a given device.
• Round-robin fashion (no priorities).