101-0599 Rabbit Semiconductor, 101-0599 Datasheet - Page 56

no-image

101-0599

Manufacturer Part Number
101-0599
Description
COMPUTER SNGLBD BL2500 512K FLSH
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-0599

Module/board Type
Single Board Computer Module
For Use With/related Products
BL2500
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
4.4.5 Analog Inputs
PARAMETER
RETURN VALUE
SEE ALSO
PARAMETERS
RETURN VALUE
SEE ALSO
50
unsigned int anaIn(unsigned int channel);
void cof_anaIn(int channel);
Uses D/A converter channel DA0 to search through the full voltage range for a match to the input voltage
on channel AD0. This is done using a 10-step successive-approximation binary search, which nominally
takes 86 ms.
Call pwmOutConfig() and pwm_init() before using this function. An exception error will occur if
these functions were not been called previously.
channel is 0 for channel AD0.
An integer value between 0 and 1023 that corresponds to a voltage between 0.0 and 3.3 V on the analog
input channel.
-1 if the return value is out of range.
This function is the cofunction version of the analog input for analog input channel AD0. This version
will “yield” on each step approximation in a costate, and will take 10 steps to complete the A/D
conversion. The function will also process costates while waiting for each approximation to settle.
channel is 0 for channel AD0
An integer value between 0 and 1023 that corresponds to a voltage between 0.0 and 3.3 V on the analog
input channel.
-1 if the return value is out of range.
cof_anaIn, anaInVolts
anaIn
NOTE: DA0 should not be used when AD0 is in use.
NOTE: All the restrictions for anaIn apply to cof_anaIn.
Coyote (BL2500)

Related parts for 101-0599