OVERVIEW
An Analog-to-Digital (A/D) converter translates an analog input signal into a discrete digital code. This digital representation of the “real world” signal can be manipulated in the digital domain for the purposes of information processing, computing, data transmission or control system implementation. In any application where a converter is used, it is advantageous to have the code structure complement the microcontroller’s operands.
This application note describes the straight binary and binary two’s complement code schemes that are outputted by Microchip’s Analog-to-Digital (A/D) converters.
All code examples given in this application note are for a 4-bit conversion. The median analog voltages in the tables are the equivalent analog voltages that are at the center of the digital code.