EasyManua.ls Logo

Teleorigin RB800 - Page 35

Teleorigin RB800
51 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
12.4. Analog/Digital Converter Input - #ADC
#ADC - Analog/Digital Converter Input
AT#ADC=<adc> 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
Example 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
12.5. I2C Bus Control - #I2C
#I2C - I2C Bus Control
AT#I2C=<speed>,
<cmd>
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

Related product manuals