Analog Input
Abstract
The PIC32 has one 10-bit analog-to-digital converter (ADC), which can read from any of 16 input pins that are typically connected to sensor outputs. This chapter describes the operating principle of the ADC; covers the major features and the special function registers (SFRs) governing those features; and provides two sample codes: one that reads an analog input on demand, and another that continually reads an analog input as fast as possible, at nearly one million samples per second.
Keywords
Analog input
ADC
Successive approximation
Sample and hold
The PIC32 has one analog-to-digital converter (ADC) that, through the use of multiplexers, can sample the analog voltage from 16 pins (Port B). Typically used ...
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.