101-0900 Rabbit Semiconductor, 101-0900 Datasheet - Page 46

SOFTWARE CD RABBITWEB MODULE

101-0900

Manufacturer Part Number
101-0900
Description
SOFTWARE CD RABBITWEB MODULE
Manufacturer
Rabbit Semiconductor
Type
RabbitWeb Moduler
Datasheets

Specifications of 101-0900

For Use With/related Products
Dynamic C 9
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
101-900
101-900
PARAMETERS
RETURN VALUE
RabbitCore RCM3700 User’s Manual
unsigned int anaInDriver(unsigned int cmd,
Reads the voltage of an analog input channel by serial-clocking an 8-bit command to the ADS7870 A/D
converter by the Direct Mode method. This function assumes that Mode1 (most significant byte first) and
the A/D converter oscillator have been enabled. See anaInConfig() for the setup.
The conversion begins immediately after the last data bit has been transferred. An exception error will
occur if Direct Mode bit D7 is not set.
cmd contains a gain code and a channel code as follows.
Use the following calculation and the tables below to determine cmd:
len, the output bit length, is always 12 for 11-bit conversions
Channel Code
unsigned int len);
D7—1; D6–D4—Gain Code; D3–D0—Channel Code
cmd = 0x80 | (gain_code*16) + channel_code
* Negative input is ground.
† Not accessible on RCM3700 Prototyping Board
7*
3
0
1
2
4
5
6
Differential Input
+AIN0 -AIN1
+AIN2 -AIN3
+AIN4 -AIN5
+AIN6 -AIN7
-AIN0 +AIN1
-AIN2 +AIN3
-AIN4 +AIN5
-AIN6 +AIN7
Lines
Gain Code
0
1
2
3
4
5
6
7
Channel Code
10
11
12
13
14
15
Multiplier
8
9
x10
x16
x20
x1
x2
x4
x5
x8
Single-Ended
Input Lines
AIN0
AIN1
AIN2
AIN3
AIN4
AIN5
AIN6
AIN7
*
4–20 mA
AIN0*
AIN1*
AIN2*
AIN7*
Lines
AIN3
AIN4
AIN5
AIN6
44

Related parts for 101-0900