Teleorigin RB800 User Manual page 35

Table of Contents

Advertisement

12.4. Analog/Digital Converter Input - #ADC
#ADC - Analog/Digital Converter Input
AT#ADC=<adc>
Example
12.5. I2C Bus Control - #I2C
#I2C - I2C Bus Control
AT#I2C=<speed>,
<cmd>
Execution command reads pin<adc> voltage, converted by ADC, and
outputs it in the format:
#ADC: <value>
where:
<value> - pin<adc> voltage, expressed in mV
Parameters:
<adc> - index of pin from 1 to 5
Set GPIO3 as ADC input with pull-up resistor
AT#GPIO=3,0,2,1
OK
Read ADC3 input value
AT#ADC=3
#ADC: 2991
OK
This command is used to execute read and write operations on I2C bus as
a master divice.
<speed> - I2C bus clock frequency
0 - 100 kHz
1 - 200 kHz
2 - 300 kHz
3 - 400 kHz
<cmd> - commands bytes stream in hexadecimal format (e.g. "A601EF")
First byte of <cmd> is slave device address (7 MSB) with write/read bit (1
LSB). LSB bit of first byte equal 0 mean write operation, equal 1 mean read
35

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rb900Rb800u

Table of Contents