Technical information

Nonvolatile Parameter Database
2-126 AT+i Commands Reference Manual May 31, 2008
+iADCT - ADC Polling Time
+iADCP - ADC GPIO Pin
Syntax: AT+iADCT=<interval>
Specifies the time interval between consecutive queries of the
value of the A/D converter's register. W24's response time to
value changes is up to 40ms.
Parameters:
interval=0 A/D converter polling is disabled.
interval=1-65535 Time interval, in milliseconds, between queries.
Default: 0 (polling disabled).
Result Code:
I/OK If interval is within limits.
I/ERROR Otherwise.
AT+iADCT? Reports the current value followed by I/OK.
AT+iADCT=? Returns the message "0-65535" followed by I/OK.
Syntax: AT+iADCP=<pin>
Defines which of W24's general-purpose I/O pins (GPIO) is
asserted by the A/D converter's polling mechanism.
Parameters:
pin=0 A/D converter polling is disabled.
pin=1-32 Pins 1-32 of PIOA (general-purpose I/O pins group A).
pin=33-64 Pins 1-32 of PIOB (general-purpose I/O pins group B).
pin=65-96 Pins 1-32 of PIOC (general-purpose I/O pins group C).
Default: 0 (polling disabled).
Result Code:
I/OK If pin is within limits.
I/ERROR Otherwise.
AT+iADCP? Reports the current value followed by I/OK.
AT+iADCP=? Returns the message "0-96" followed by I/OK.