Analog Interface Board

We designed our laboratory analog/digital interface board based on the PIC 16C774 microcomputer made by MicroChip. This PIC is relatively inexpensive, easy to program and it contains the features we require. MicroChip provides a good selection of technical notes and sample programs/routines that simplified our task. An outline of the features we use follows:

Other features are shown on the schematic at the end of this document.

Full version of the schematic

The PIC is nominally an 8-bit computer, but it uses single word 14 bit instructions that are written to a 4K Read Only Memory. The PIC has 192 memory locations (general purpose registers) available and some are used for data storage. This memory would be considered an extremely limited resource for a general puprose computer, but it is more than adequate when the microcomputer functions mainly as a controller.

The program is prepared using the PIC START PLUS system (from MicroChip, $199.) This includes an assembler, a simulation program useful in testing programs, and a chip programmer connected to the serial or USB port of a standard PC.

Our program operates with interrupts on the RS232 input line (PIC's RC line.) All characters received are built into a string until a CR is received. At that point the string is treated as a command and processed. The first character determines the type of command. Characters 2-3, if present, become constants; additional constants are ignored.

We chose the PIC 16C774 since it is the only member of the PIC family that offered both 12 bit ADC and a full serial port. (The 16C773 is similar but fewer Ports; it would have worked equally well.) Newer Flash models (electrically programmable and erasable chips) would be preferable, but they currently do not come beyond 10 bit capability.

return to the index page