Package hw
Class IO
Public Method getADCValue
static int getADCValue(int port)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
| Parameter |
Range |
Description |
| port |
0 ... 3 |
logical port name |
Returns the value of any of the 4 ADC (Analog Digital Converter) ports defined as "Analog In" in the "I/O Settings" section of iLCD Manager XEJoC Manager's "Settings" page.
| Returns |
Description |
| value |
value of the requested ADC |
Note
- The DPC3090's ADCs have a resolution of 12 bits, resulting in a value range of decimal 0 ... 4095 (0xFFF) where 0 is an input voltage of 0V and 4095 is an input voltage of 3.3V, the value of the supply voltage of the iLCD controllerJoC.
-
The ADCs have a resolution of 12 bits, resulting in a value range of decimal 0 ... 4095 (0xFFF).
0V responds to a decimal value of 0.
3.3V responds to a decimal value of 4095
if no change is applied to the VREF pin. For further information please consult the technical
JoC specification.
int value = IO.getADCValue(2);
See also:
Copyright © demmel products gmbh. All rights reserved.