20-101-1258 Rabbit Semiconductor, 20-101-1258 Datasheet - Page 94

COMPUTER SINGLE-BOARD BL4S160

20-101-1258

Manufacturer Part Number
20-101-1258
Description
COMPUTER SINGLE-BOARD BL4S160
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 20-101-1258

Module/board Type
Single Board Computer Module
Product
Modules
Processor Type
Rabbit 4000
Sram
1 MB
Flash
2 MB
Timers
8 bit, 10 bit
Number Of I/os
20
Backup Battery
3 V Lithium Coin Type
Operating Voltage
9 V to 36 V
Board Size
96 mm x 146 mm x 16 mm
Description/function
Computer Module
For Use With/related Products
BL4S160
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
316-1171
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 20-101-1258