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

KIT FOR BL4S100 STARTER PACKAGE

101-1268

Manufacturer Part Number
101-1268
Description
KIT FOR BL4S100 STARTER PACKAGE
Manufacturer
Rabbit Semiconductor
Type
Single Board Computers (SBC)r
Datasheet

Specifications of 101-1268

Product
Modules
Processor Type
BL4S100
Sram
512 KB
Timers
8 bit, 10 bit
Number Of I/os
20
Backup Battery
3 V Lithium Coin Type
Operating Voltage
9 V to 36 V
Power Consumption
2 W
Board Size
96 mm x 146 mm x 16 mm
Description/function
Computer Module
For Use With/related Products
BL4S100
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
316-1157
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-1268