Modified 02/14/03

Code and circuits (and more) are here.


This is an example of a DVM using PIC 16F876 or 16F873. It reads 0-5V at pin 2 every 10mS, and writes the 10-sample averaged result to a 9600 baud terminal screen.

Technical Details

  • Analog input at A0 (pin 2)
  • 9600 baud output as B0 (pin 21)
  • Pulse output at B1 (pin 22) to provide a pulse every 10mS (for test purposes)