Demand Peripherals     Robotics and Automation Made Easy

ADC812: Eight Channel, 12-bit Analog-to-Digital Converter

The ADC812 peripheral performs a 12 bit ADC on eight inputs at a rate between 4 HZ and 100 Hz. Two inputs can be combined to form a differential input for the ADC. Differential inputs perform a 13 bit conversion.



The ADC812 peripheral requires either the ADC812 card or the ADC812-ST card.



The resources for the ADC812 let you specify the sample rate and whether or not an input is differential. The ADC samples are available at the 'samples' resource.

config : The sample period in milliseconds and an hex value to specify which inputs are differential. The sample period is given in decimal and must be between 10 and 256.

The differential inputs are given as an 8 bit hexadecimal number with a leading '0x'. If differential bit 0 is set then value 0 reports the signed 13-bit value of input 0 minus input 1. If bit 1 is set then value 1 reports the value of input 1 minus input0. This pattern is the same for the other differential pairs, 2/3. 4/5, and 6/7.

This is a read-write resource and works with dpset and dpget but not dpcat.

samples : eight space-separated 12-bit ADC readings as hex values. There is one line of output for each set of samples. Single-ended inputs give an unsigned 12 bit result and differential inputs give a signed 12 bit result (since the difference can be above or below the adjoining pin). You can use select() on this resource after giving the dpcat command.



Set the sample rate to 50 milliseconds and eight single-ended inputs.

   dpset adc812 config 50 0x00 

Monitor the ADC readings as a stream.

   dpcat adc812 samples 

If you have two ADC812 cards in your system you access the second one by slot number.
   dpcat 3 samples 


FPGA Defined Peripherals
User Interface
FPGA Configuration
FPGA Buttons & LEDs
Host Tx/Rx Interface
AVR Interface
Stereo Audio Amplifier
Text LCD and Keypad
Quad WS2812 Interface
Quad Slide Pot
IR Recv/Xmit
6 Digit LCD
RC Decoder
Keyfob RF Decoder
Rotary Encoder Interface
Quad Touch Interface
Motion Control
Dual DC Motor Controller
Dual Quadrature Decoder
Quad 13 Bit Servo
Bipolar Stepper Controller
Unipolar Stepper Controller
Simple Input / Output
Quad Binary Output
Quad Binary Input
Octal Input/Output
32 Channel Binary Output
32 Channel Binary Input
Quad Serial Output
Octal Serial Output
Octal 12-bit ADC
Quad Ping))) Interface
Pololu QTR Interface
Octal SRF04 Interface
Generic I2C
Generic SPI
Octal 8-Bit DAC
Quad Digital Potentiometer
Quad PWM Output
Quad PWM Input
Quad Event Counter
Real Time Clock
Dual Pulse Generator

Interface Cards
Control Cards
User Interface
Stereo Audio Amplifier
IR Recv/xmit
Six Digit LCD Display
Keyfob RF Receiver
Rotary Encoder
Quad Switch Card
Text LCD / keypad
Quad Slide Pot
Quad Touch Interface
Motion Control
Dual 7-amp H-bridge
Quad Open Drain Driver
Quad 10 Amp Relay Card
Input / Output
Octal 8-Bit DAC
Quad Digital Potentiometer
Octal 12-bit ADC
Octal SRF04
I2C Prototyping
SPI Prototyping
USB 2.0 Hub
Real Time Clock
Octal Input/Output
32 Channel Input
32 Channel Output
Power Distribution Card
15 Amp Power Distribution
5 Volt Switching Regulator
ATX Power Break-Out Card
Disk Drive Power Break-Out
MP43 Aluminum Mounting Plate
WW4 Large Prototyping Card
WW2 Prototyping Card
WW1 Small Prototyping Card
SMP SMD Prototyping Card