Protocol mode:
Settings:
1 = Slave Addr = 0
2 = Baudrate = 400000
3 = Data Control =
P
4 = Data Poll*10ms = 10
5 = Flow Control = N
Using this setting it will be possible to directly access the interface via TCP/IP and to directly address the
I2C-Slave by means of corresponding commands such as WRITE and READ.
WRITE: 0x02,0x00,0x0A,0x03,0x50,0x02,0x00,0x00,0x57,0x00,0x01,0xnn,0x03
0x02 STX
0x00,0x0A Len (10 Bytes) follows
always 2 Byte
0x03
function code (with all messages)
0x50 Slave Address
0x02 Count Internal Address
0x00,0x00 Internal Address 0x00,0x00
Count(0-4 Byte)
0x57 W = WRITE
0x00,0x01 write 1 byte
always 2 Byte
0xnn Byte to write
0x03 ETX
READ: 0x02,0x00,0x09,0x03,0x50,0x02,0x00,0x00,0x52,0x00,0x02,0x03
0x02 STX
0x00,0x09 Len (9 Bytes) follows
always 2 Byte
0x03
function code (with all messages)
0x50 Slave Address
0x02 Count Internal Address
0x00,0x00 Internal Address 0x00,0x00
Count(0-4 Byte)
0x52 R = READ
0x00,0x02 read 2 byte
always 2 Byte
0x03 ETX
MSG
: no ACK/NAK (function code = 0x00)
NAK only (function code = 0x01)
ACK only (function code = 0x02)
ACK and NAK (function code = 0x03)
Answers:
NAK 0x15,'S' NAK STX
0x15,'E' NAK ETX
0x15,'A' NAK Slave Address
0x15,'C' NAK Command
0x15,'L' NAK Len
0x15,'B' NAK Buffer
0x15,'R',.. NAK Read and Data we could read
0x15,'W',nn,nn NAK Write and nn,nn = Data we could write
ACK 0x06,'R'... ACK Read and Data
0x06,'W' ACK Write
Содержание XT-PICO-XXL
Страница 1: ...XT PICO XXL DesignGuide V1 1...
Страница 6: ...5 Dimensions 22 mm 2mm 2mm 32 mm 24 mm Bottom View...
Страница 9: ...Connecting plan...
Страница 10: ...7 Schematics RS232...
Страница 11: ...RS485...
Страница 12: ...SPI...
Страница 13: ...I2C...
Страница 14: ...SD CARD...
Страница 15: ...LCD DISPLAY SPI...
Страница 16: ...LCD DISPLAY 4BIT...
Страница 17: ...Dataflash SPI...
Страница 18: ...POE PowerOverEthernet Note The POE module is available at AK NORD Order number AK9050...