Kantronics KPC–3 Plus User Manual page 152

Hide thumbs Also See for KPC–3 Plus:
Table of Contents

Advertisement

Entering the ANALOG command returns a string of 8 values, based on the current
voltage readings from 8 A-to-D lines. Only the first two of these values are relevant to
the user, reporting two external voltages.
At any given time, each of the 8 A-to-D lines will have a voltage value somewhere in the
range of 0 - 5 V dc. 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.
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 KPC-3 Plus, only the first two values are relevant to the
user (several other lines could be used for special purposes, with appropriate
modifications of the board, but they are normally intended just for internal use within the
KPC-3 Plus).
The response is in the following form:
AN0/AN1/AN2/AN3/AN4/AN5/AN6/AN7
AN0, input (0), reports a decimal number in the range of (0-255), representing the current dc
voltage of an external input read from either pin 4 on the Radio Port or from pin 18 on the
Serial Port, depending on the current setting of jumper J8:
If jumper J8 is in position 1, the external voltage input is read from pin 4 of the Radio
Port.
If jumper J8 is in position 2, the external voltage input is read from pin 18 of the Serial
Port.
Note: As shipped, jumper J8 is off to the side, so it is not in either position 1 or position
2. If J8 is in neither position 1 nor position 2, AN0 will not report meaningful values.
AN1, input (1), reports a decimal number in the range of (0-255), representing the current dc
voltage of external input read from either pin 8 on the Radio Port or from pin 11 on the Serial
Port, depending on the current setting of jumper J10:
If jumper J10 is in position 1, the external voltage input is read from pin 8 of the Radio
Port.
If jumper J10 is in position 2, the external voltage input is read from pin 11 of the Serial
Port.
Note: As shipped, jumper J10 is off to the side, so it is not in either position 1 or position 2. If
J10 is in neither position 1 nor position 2, AN1 will not report meaningful values.
AN2, is not used in the KPC-3 Plus.
AN3, is not used in the KPC-3 Plus.
AN4, input (4), is intended for internal use.
AN5, is not used in the KPC-3 Plus.
152

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents