COPTONIX I2C-RS232-Adapter Podręcznik - Strona 11

Przeglądaj online lub pobierz pdf Podręcznik dla Adapter COPTONIX I2C-RS232-Adapter. COPTONIX I2C-RS232-Adapter 15 stron. I2c rs232 adapter (slave)

4.2.7 SetBaud
sets the baud rate of the UART.
Byte
content
0
Slave Address
1
SetBaud
2
Baud Rate
Baud
Baud Rate
Bit2 Bit1 Bit0
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
115200
X (7:3)
Do not care
4.2.8 ReadBaud
reads the currently adjusted baud rate.
Byte
content
0
Slave Address (W)
1
GetStatus
Byte
Content
0
Slave address (R)
1
Slave address
2
Baud
SetBaud command (0x44)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
A7
A6
0
1
x
x
2400
4800
9600
19200
28800
38400
57600
ReadBaud command (0x45)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
A7
A6
0
1
ReadBaud 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
X
X
A5
A4
A3
0
0
0
x
x
x
A5
A4
A3
0
0
0
A5
A4
A3
X
X
X
A2
A1
0
1
0
0
Baud (2:0)
A2
A1
0
1
0
1
A2
A1
1
Baud (2:0)
Rev1.4 April 2014
11