Analog Input from a Printer Port


This program demonstrates using a National Semiconductor ADC0833CCN for implementing an Analog to Digital converter using inexpensive hardware and a standard PC printer port. A block diagram of the system is shown below:


The A/D converter is made up of a National Semiconductor ADC0833CCN quad A/D converter and multiplexer. This chip has a synchronous serial interface, and incorporates an 8 bit DAC output with a comparator for implementing a successive approximation A/D converter. The interface to the ADC0833 is a synchronous serial interface. The clock signal is sent through the clock input. A start bit is first sent to the chip on the din pin. Then the four bits are sent to select the input (0-3). Each clock pulse after that causes the ADC0833 to compare the internally controlled DAC output with the selected analog input using the built in comparator, and send the result out the dout pin. This amounts to a transmition of the eight bit result (msb first).

The interface circuit is shown below:




This VB application is a good example of how to perform A/D conversion using the PC's printer port. It is available complete w/ source code as a Free Download!



[ Back ] [ Download Program ]

Send mail to webmaster@swe-eng.com with questions or comments about this web site.
Please read our Usage Rules before using any information from this site.
Copyright © 2000 SWE Engineering
Last modified: June 10, 2002