December 2015
Beginner to intermediate
650 pages
18h 28m
English
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 ...
Read now
Unlock full access