COPTONIX I2C-RS232-Adapter Manuale - Pagina 12
Sfoglia online o scarica il pdf Manuale per Adattatore COPTONIX I2C-RS232-Adapter. COPTONIX I2C-RS232-Adapter 15. I2c rs232 adapter (slave)
4.2.9 ResetBuffers
deletes UART and I2C temporary RAM data.
Byte
Content
0
Slave Address
1
ResetBuffers
4.2.10 ReadVersion
reads the version of the adapter.
Byte
Content
0
Slave Address (W)
1
ReadVersion
Byte
Content
0
Slave address (R)
1
Slave address
2
FM_Version HIGH
3
FM_Version LOW
e.g. 0x0102 => HiByte = 0x01 ; LoByte = 0x02
The version is read as a BCD code:
=> Version 01.02
4.2.11 SetUARTMode
sets the UART mode.
Byte
content
0
Slave Address
1
SetUARTMode
2
UART Mode
TimeOut
M
0
Data received from the UART is forwarded to the I2C Output after a defined
time (milliseconds) is elapsed.
1
ETX Character
Data received from the UART is forwarded to the I2C Output after the ETX
character is detected.
SaveInitSlvAdr command (0x66)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
A7
A6
0
1
ReadVersion command (0x76)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
A7
A6
0
1
ReadVersion Response
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
A7
A6
Slave address of the selected device
SetUARTMode command (0x46)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
A7
A6
0
1
x
x
UART Mode
A5
A4
A3
1
0
0
A5
A4
A3
1
1
0
A5
A4
A3
version HIGH Byte
version LOW Byte
A5
A4
A3
0
0
0
x
x
x
A2
A1
0
1
1
0
A2
A1
0
1
1
0
A2
A1
1
A2
A1
0
1
1
0
x
x
M
Rev1.4 April 2014
12