20-101-0356 Rabbit Semiconductor, 20-101-0356 Datasheet - Page 58

COMPUTER SINGLE-BOARD BL1800

20-101-0356

Manufacturer Part Number
20-101-0356
Description
COMPUTER SINGLE-BOARD BL1800
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 20-101-0356

Module/board Type
Single Board Computer Module
Product
Modules
Data Bus Width
8 bit
Processor Type
Rabbit 2000
Sram
128 KB
Flash
256 KB
Timers
8 bit, 10 bit
Number Of I/os
14
Backup Battery
3 V Lithium Coin Type
Operating Voltage
8 V to 40 V
Power Consumption
1.2 W
Board Size
89 mm x 64 mm x 19 mm
Description/function
Computer Module
For Use With/related Products
BL1800
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
316-1079
4.4.1.4 Analog Input
The analog input channel on the Jackrabbit (AD0 on header J5) works by varying analog
output channel DA0 until its voltage matches the input voltage on AD0. DA0 obviously
cannot be used while an input voltage is being measured, although channel DA0 is still
available. The value returned corresponds to the value that DA0 required to match the
input voltage (you would call
If the value returned is negative, then the function considers the value suspect for some
reason (most likely a failure of the DA0 voltage to settle quickly). The value can be taken
as is, or another measurement can be done.
An integer between 0 and 1024 will be returned in
obtained if output channel DA0 was set to that value. If a value is found, but the voltage
has not appeared to fully settle, the value will be negative (but equal in magnitude to the
found voltage) to allow remeasurement if desired.
Two versions of the analog input function are available: the standard function, listed
above, that does not return until the measurement has been made, and a cofunction version
that can be called from within a costatement. This cofunction version allows other tasks to
be performed while the voltage match is being made. The voltage measurement will take
ten calls of the cofunction version to make a measurement.
54
void anaIn(int channel, int *value);
void cof_anaIn(int channel, int *value);
Analog input for the Jackrabbit analog input channel (AD0).
The parameters are identical to those described above for
jrioInit
channel
NOTE: See sample program JRIOTEST.C for an example of the use of anaIn.
NOTE: See sample program JRIO_COF.C for an example of the use of cof_anaIn.
is the input channel number (0 only on the Jackrabbit).
must be called first.
m
anaOut(0,value)
=
voltage
-------------------------------------------------------------------- -
PWM_MAX0 PWM_MIN
=
V
m value
max
×
V
for DA0 to provide that same voltage).
value
anaIn
min
+
b
, corresponding to a voltage
.
Jackrabbit (BL1800)

Related parts for 20-101-0356