101-1279 Rabbit Semiconductor, 101-1279 Datasheet - Page 94

PLASTIC ENCLOSURE FOR BL4S100

101-1279

Manufacturer Part Number
101-1279
Description
PLASTIC ENCLOSURE FOR BL4S100
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-1279

Accessory Type
Enclosure
Product
Prototyping Accessories
Processor Type
BL4S100
Board Size
146 mm x 96 mm x 16 mm
Interface Type
Ethernet
For Use With/related Products
BL4S100
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
316-1159
FUNCTION DESCRIPTION
PARAMETER
BL4S100 User’s Manual
int anaInDriver(char cmd);
Low-level driver to read the ADS7870 A/D converter chip. Reads the voltage of an an-
alog input channel by serial clocking an 8-bit command to the ADS7870 by its Direct
Mode method.
assumes that Mode2 (least significant byte first) and the A/D converter oscillator have
been enabled.
See anaInConfig() for additional setup information.
After the last data bit is transferred, the conversion begins immediately. An exception
error will occur if Direct Mode bit D7 is not set.
cmd
anaInConfig()
The
MSB is set high for direct-mode access. The format is as follows:
Use the following calculation and tables to determine
cmd = 0x80 | (gain_code<<4) + channel_code
cmd
gain_code
parameter contains a gain code and channel code, and the
anaInDriver
D7
1
0
1
2
3
4
5
6
7
uses the Register Mode method. This function call
gain_code
D6–D4
Multiplier
10
16
20
1
2
4
5
8
channel_code
D3–D0
cmd
:
92

Related parts for 101-1279