101-0463 Rabbit Semiconductor, 101-0463 Datasheet - Page 53

no-image

101-0463

Manufacturer Part Number
101-0463
Description
COMPUTER SINGLE BOARD BL2120
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-0463

Module/board Type
Single Board Computer Module
For Use With/related Products
BL2120
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
PARAMETERS
RETURN VALUE
SEE ALSO
EXAMPLE
User’s Manual
int anaInDriver(unsigned char cmd, char len);
Reads the voltage of an analog input channel by serially clocking out an 8-bit command to the A/D con-
verter. The driver has been designed for the Texas Instruments TLC2543 A/D converter used on the
BL2100 and the BL2120.
cmd is formatted as follows.
TLC2543 commands
len is the output data length:
A value corresponding to the voltage on the A/D converter input channel, which will be:
Look at the sample programs in SAMPLES\BL2100\ADC.
D7–D4
D3–D2
D1
D0
anaIn, anaInVolts, brdInit
Channel 0–10
Channel 11 = (V
Channel 12 = V
Channel 13 = V
Channel 14 = software powerdown
Output data length:
01—8 bits
00—12 bits (normally used as default)
11—16 bits (not supported by driver)
Output data format
0—MSB first
1—LSB first (not supported by driver)
Mode of operation
0—Unipolar (normally used as default)
1—Bipolar
0 = 12-bit mode
1 = 8-bit mode
0–4095 for 12-bit A/D conversions
0–255 for 8-bit A/D conversions
ref-
ref+
ref+
- V
ref-
)/2
47

Related parts for 101-0463