RM024 User Manual
Version 2.3
Americas: +1-800-492-2320 Option 2
Europe: +44-1628-858-940
Hong Kong: +852-2923-0610
www.lairdtech.com/wireless
45
CONN-GUIDE-RAMP24-0413
Write API Control
The OEM host issues this command to write the API Control byte to enable or disable the API features.
Command:
<0xCC> <0x17> <API Control>
Number of Bytes Returned:
2
Response:
<0xCC> <API Control>
Parameter Range:
<Auto Dest> = bits 7-3: 0
bit-2: Send Data Complete
bit-1: Transmit API
bit-0: Receive API
Read Digital Inputs
The OEM host issues this command to read the state of both digital output lines.
Command:
<0xCC> <0x20>
Number of Bytes Returned:
2
Response:
0xCC <Digital In>
Parameter Range
<Digital In> = bit-1: GIO_8
= bit-0: GIO_4
Read ADC
The OEM host issues this command to read the analog to digital converters at up to 12-bit resolution. Higher
resolutions can cause slower responses from the command. The time required for a conversion is: Tconv =
(decimation rate + 16) * 0.23 µS.
In most applications this is used to measure the input voltage (to detect reduced battery power) with Vcc/3,
the temperature sensor or the Analog input pin. For the most accurate results the 1.25 V internal reference
should be chosen, though this limits the OEM to a maximum A/D Input of 1.25 V. Vcc/3 and the temperature
sensor readings should use the internal 1.25 V reference as those voltages will never exceed 1.25 V.
The ADC result is represented in a two’s complement form. The result is the difference between ground and
the selected channel and is a value between -2048 and 2047 with 2047 representing the maximum value
where the ADC result equals the reference voltage and -2048 equals the negative of the reference voltage.
The ADC cannot measure a voltage higher than the reference voltage.
Command:
<0xCC> <0x21> <Data>
Number of Bytes Returned:
3
Response:
0xCC <Hi ADC> <Lo ADC>
Parameter Range:
<Data bits 7-6> = <Reference Voltage>
00: Internal 1.25V reference
10: Voltage on Vcc pin
<Data bits 5-4>= <Resolution>
00: 64 decimation rate (7 bits resolution)
01: 128 decimation rate (9 bits resolution)
10: 256 decimation rate (10 bits resolution)
11: 512 decimation rate (12 bits resolution)
<Data bits 3-0>= <Channel>
0000: AD/In (GIO_7)
1100: GND
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from