Input Capture
Abstract
Input capture (IC) peripherals are used to precisely time the duration between rising and falling edges of digital inputs. This chapter describes how special function registers (SFRs) are configured to automatically perform this timing without CPU intervention and provides sample code demonstrating how the duty cycle of a pulse-width modulation signal can be detected by an input capture module.
Keywords
Input capture (IC)
Pulse-width modulation (PWM)
The input capture (IC) peripheral monitors an external signal and stores a timer value when that signal changes, allowing precise timing of external events. In some sense, input capture can be viewed as the opposite of output compare. Output compare changes the ...
Get Embedded Computing and Mechatronics with the PIC32 Microcontroller 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.