Skip to Content
Embedded C Programming
book

Embedded C Programming

by Mark Siegesmund
September 2014
Beginner to intermediate
424 pages
10h 4m
English
Newnes
Content preview from Embedded C Programming
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.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical C Programming

Practical C Programming

B. M. Harwani

Publisher Resources

ISBN: 9780128013144