COPTONIX I2C-RS232-Adapter Руководство - Страница 10

Просмотреть онлайн или скачать pdf Руководство для Адаптер COPTONIX I2C-RS232-Adapter. COPTONIX I2C-RS232-Adapter 15 страниц. I2c rs232 adapter (slave)

6.2.4 SetSlvAdr
The default slave address is 0xFE (1111 1110). The "SetSlvAdr" command allows to
change the slave address of the adapter.
Byte
content
0
Slave Address
1
SetSlvAdr
2
Slave address
The new slave address is written to a temporary register and still not active. In order
to read/verify this new slave address, issue the command "ReadSlvAdr". If the
command "SaveInitSlvAdr" is issued, then the new slave address is saved into the
EEPROM and the I2C-Interface is initialised.
6.2.5 ReadSlvAdr
read / verify the new slave address that was written to the temporary register.
Byte
content
0
Slave Address (W)
1
ReadSlvAdr
Byte
Content
0
Slave Address (R)
1
Slave Address
2
New Slave Address
6.2.6 SaveInitSlvAdr
Save and initialize the new slave address.
Byte
Content
0
Slave Address
1
SaveInitSlvAdr
SetSlvAdr command (0x41)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
A7
A6
0
1
Slave Address(7:1)
ReadSlvAdr command (0x42)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
A7
A6
0
1
ReadSlvAdr 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
New Slave Address (temporary register)
SaveInitSlvAdr command (0x43)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
A7
A6
0
1
A5
A4
A3
0
0
0
A5
A4
A3
0
0
0
A5
A4
A3
A5
A4
A3
0
0
0
A2
A1
0
0
0
1
0
A2
A1
0
0
1
0
A2
A1
1
A2
A1
0
0
1
1
Rev1.4 April 2014
10