Technical information

Chapter 2: AT+i Commands Reference
May 31, 2008 AT+i Commands Reference Manual 2-125
+iADCL - ADC Level
+iADCD - ADC Delta
Syntax: AT+iADCL=<level>
Specifies an ADC base level, or threshold, in the range
0-255 that corresponds to an analog voltage measured on the
input pin of W24's A/D converter.
Together with ADCD, these two parameters determine when the
A/D converter asserts the GPIO pin specified by the ADCP
parameter. ADCL must be greater than ADCD.
Parameters:
level=0 A/D converter polling is disabled.
level=1-255 ADC threshold level.
Default: 0 (polling disabled).
Result Code:
I/OK If level is within limits.
I/ERROR Otherwise.
AT+iADCL? Reports the current value followed by I/OK.
AT+iADCL=? Returns the message "0-255" followed by I/OK.
Syntax: AT+iADCD=<delta>
Specifies an ADC delta. Together with ADCL, these two
parameters determine when the A/D converter asserts the GPIO
pin specified by the ADCP parameter. ADCD must be less than
ADCL.
Parameters:
delta=0-255 A/D converter polling is disabled.
Default: 0 (zero delta).
Result Code:
I/OK If delta is within limits.
I/ERROR Otherwise.
AT+iADCD? Reports the current value followed by I/OK.
AT+iADCD=? Returns the message "0-255" followed by I/OK.