How To Interface An External A/D chip to 5X devices

Submitted by: TechTools

Download Link: link
This application note shows how to interface an 8-bit serial analog-to-digital converter to 16C5x-series PICmicro® MCUs. The sample program reads the voltage at the 831's input pin and uses the eight-bit result to control a timing routine that flashes an LED. The LED flashes slowly when the input is 5 volts, and very rapidly as it approaches ground.