Using the MCP320X 12-Bit Serial A/D Converter with Microchip PICmicro® Devices
The MCP320X devices comprise a family of 12-bit successive approximation Analog to Digital (A/D) Converters. These devices provide from one to eight analog inputs with both single ended and differential inputs. Data is transferred to and from the MCP320X through a simple SPI ® -compatible 3-wire interface. This application note discusses how to interface the MCP320X devices to Microchip PICmicro ® devices, using both software and hardware SPI with examples shown in C and Assembly languages. The programs in this application note were developed using a PIC16C62A and MCP3202 on a PICDEM-2 demonstration board. As a matter of convenience, the CLK, DO, and DI pins of the PIC16C62A are used for all examples, whether using
the hardware SPI peripheral or the software SPI implementation. The software SPI may be adapted to I/O ports on any PICmicro device.
12-bit, MCP3202, Converter, SPI, A/D Converter