User’s Manual
45
TLC1543 commands
(the TLC1543 is a 10-bit A/D converter)
D7–D4
Channel 0 - 10
Channel 11 = (Vref+ - Vref-)/2
Channel 12 = Vref-
Channel 13 = Vref+
(No software power-down mode available)
D3–D0
No specific values assigned.
PARAMETERS
cmd
is the A/D converter input channel (0–10) to read.
len
is the output data length:
0 = 12-bit mode (BL2000/BL2020 only)
1 = 8-bit mode (BL2000/BL2020 only)
2 = 10-bit mode (BL2010/BL2030 only)
RETURN VALUE
A value corresponding to the voltage on the A/D converter input channel, which will be:
0–4095 for 12-bit A/D conversions
0–1023 for 10-bit A/D conversions
0–255 for 8-bit A/D conversions
SEE ALSO
anaIn, anaInVolts, brdInit, samples/bl2000/adc/AD3.C
Reads the state of an A/D converter input channel.
PARAMETER
channel
is the A/D converter input channel (0–10) to read.
RETURN VALUE
A value corresponding to the voltage on the analog input channel, which will be:
0–4095 for 12-bit A/D conversions (BL2000,BL2020)
0–1023 for 10-bit A/D conversions (BL2010,BL2030).
SEE ALSO
anaInVolts, anaInCalib, _anaIn, brdInit
int anaIn(unsigned int channel);
Содержание Wildcat BL2000
Страница 1: ...Wildcat BL2000 C Programmable Single Board Computer with Ethernet User s Manual 019 0094 040731 K ...
Страница 16: ...12 Wildcat BL2000 ...
Страница 36: ...32 Wildcat BL2000 ...
Страница 54: ...50 Wildcat BL2000 ...
Страница 82: ...78 Wildcat BL2000 ...
Страница 86: ...82 Wildcat BL2000 ...
Страница 90: ...86 Wildcat BL2000 ...
Страница 92: ...88 Wildcat BL2000 ...
Страница 96: ......