Z-World Wildcat BL2000 User Manual page 49

C-programmable, with ethernet
Table of Contents

Advertisement

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
int anaIn(unsigned int channel);
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
User's Manual
45

Advertisement

Table of Contents
loading

Related Products for Z-World Wildcat BL2000

Table of Contents