© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
A. SuberoProgramming PIC Microcontrollers with XC8Maker Innovations Serieshttps://doi.org/10.1007/979-8-8688-0467-0_6

6. Interrupts, Timers, Counters, and PWM

Armstrong Subero1  
(1)
Moruga, Trinidad and Tobago
 

Once we have gotten past the initial state of getting our programs to perform input and output, the next obvious step would be to introduce some of the most important peripherals inside the microcontroller: interrupts, timers, counters, and Pulse Width Modulation.

Introduction to Interrupts

Interrupts are one of the simplest concepts related to microcontrollers. Let me explain interrupts as simply as possible by referring to everyday life.

Imagine that ...

Get Programming PIC Microcontrollers with XC8: Mastering Classical Embedded Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.