Entering the ANALOG command returns a string of 8 values, based on the cur
-
rent voltage readings from 8 A-to-D lines. Only the first four of these values are
relevant to the user, reporting up to four external voltages.
At any given time, each of the 8 A-to-D lines will have a voltage value some
-
where in the range of 0 - 5 VDC. Instead of reporting voltages, the ANALOG
command returns a decimal number in the range of 0 - 255 for each line. Each
decimal value corresponds to a voltage input in the range of 0 to +5 VDC.
The reason ANALOG returns 8 values is that it is attached to an 8-way mux input of
a single A/D converter. In the KAM’98, only the first four values are relevant to the
user (several other lines could be used for special purposes, with appropriate modi
-
fications of the board, but they are normally intended just for internal use within
the KAM’98).
The response is in the form “AN0/AN1/AN2/AN3/AN4/AN5/AN6/AN7",
where:
• AN0, input (0), reports a decimal number in the range of (0-255),
representing the current DC voltage of an external input read from pin 1
on the AUX Port.
• AN1, input (1), reports a decimal number in the range of (0-255),
representing the current DC voltage of an external input read from pin 2
on the AUX Port.
•
AN2, input (2), when jumper J9 is in position 1, reports a decimal
number in the range of (0-255), representing the current DC voltage of
an external input read from pin 3 of the AUX port.
+
When jumper J9 is in position 2, this A-to-D input is connected to in
-
ternal circuitry and the value of AN2 has no significance to the user.
•
AN3, input (3), when jumper J21 is in position 2, reports a decimal
number in the range of (0-255), representing the current DC voltage of
an external input read from pin 4 of the AUX port.
+
When jumper J21 is in position 1, this A-to-D input is connected to
internal circuitry and the value of AN3 has no significance to the
user.
KAM’98 Commands Command Reference
KAM’98 v 8.3 227 User’s Guide