O'Reilly logo

Embedded C Programming by Mark Siegesmund

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 19

Advanced Timing

Abstract

This chapter describes the peripherals associated with timers on most PIC® microcontrollers.

Pulse width modulation (PWM) is fully explained, with diagrams and C code examples. The capture peripheral found on most PIC® processors allows a timer value to be captured in response to an external event. The compare peripheral also on most PIC® processors triggers an event when the timer reaches a specific value. Both capture and compare are fully described with C examples.

The differences between the 24 bit opcode PIC® processors, and the other processors as it applies to the timer peripherals, are also explained.

Examples and exercises are for the popular PIC® microcontroller manufactured by Microchip.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required