50
Coyote (BL2500)
4.4.5 Analog Inputs
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.
NOTE:
DA0 should not be used when AD0 is in use.
PARAMETER
channel
is 0 for channel AD0.
RETURN VALUE
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.
SEE ALSO
cof_anaIn, anaInVolts
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.
NOTE:
All the restrictions for
anaIn
apply to
cof_anaIn
.
PARAMETERS
channel
is 0 for channel AD0
RETURN VALUE
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.
SEE ALSO
anaIn
unsigned int anaIn(unsigned int channel);
void cof_anaIn(int channel);
Содержание Coyote BL2500
Страница 1: ...Coyote BL2500 C Programmable Single Board Computer with Ethernet User s Manual 019 0120_M...
Страница 6: ...Coyote BL2500...
Страница 71: ...User s Manual 65 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the Coyote...
Страница 90: ...84 Coyote BL2500...
Страница 103: ...User s Manual 97 function calls readUserBlock 36 writeUserBlock 36 sample programs USERBLOCK_INFO C 52 55 56...
Страница 104: ...98 Coyote BL2500...
Страница 106: ......