
Rev1.4 April 2014
9
6.2.2 ReadData
This command is used for reading data that were received from UART and temporary
written into internal RAM.
ReadData command (0x72)
Byte
content
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0
Slave Address
A7
A6
A5
A4
A3
A2
A1
0
1
ReadData
0
1
1
1
0
0
1
0
ReadData Response
Byte
content
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0
Slave Address
A7
A6
A5
A4
A3
A2
A1
1
1
Slave Address
Slave address of the selected device
2
Byte 1
1. Byte
…
...
…
n+1
Byte n
n Bytes (up to 128 bytes; n = Length)
When the adapter receives a message from UART, then output Pin5 is set low. This
Pin remains low until the ReadData command is issued, then Pin5 ist set high.
6.2.3 ReadCount
This command returns the number of bytes received from the UART interface.
ReadCount command (0x63)
Byte
content
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0
Slave Address (W)
A7
A6
A5
A4
A3
A2
A1
0
1
ReadCount
0
1
1
0
0
0
1
1
ReadCount Response
Byte
Content
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0
Slave Address (R)
A7
A6
A5
A4
A3
A2
A1
1
1
Slave Address
Slave address of the selected device
2
Count
Count of received bytes
3
Status
x
x
x
x
x
x
x
S
Status
0 Data already read
S
1 New data packet
x
Do not care
Содержание I2C-RS232-Adapter
Страница 6: ...Rev1 4 April 2014 6 4 Dimension mm...