I2C Read; I2C Stop; I2C Send Packet - Philips PC-Link Manual

Table of Contents

Advertisement

3.2.15. I2C READ

Is used to command the module to read 1 byte via I
Host Command
Module Response
Parameter of host is given value of 0 to respond the I
acknowledge and value of 1 to respond I
If packet is recognized and correct, module will respond with data reading
result.
If the packet is false/not recognized, module will respond with NACK (0xEE).
Example:
PC
USB Smart I/O
means that the computer requests 1 data that is found on I
responded with not acknowledge. Module replies that the data reading result
via I
2
C has a value of 144 (0x90).

3.2.16. I2C STOP

Is used to command the module to send stop condition to I
Host Command
Module Response
If packet is recognized and correct, module will respond with ACK (0xAA).
If the packet is false/not recognized, module will respond with NACK (0xEE).
Example:
PC
USB Smart I/O

3.2.17. I2C SEND PACKET

Is used to command the module to sends 1 data packet via I
Host Command
Module Response
Parameter with maximum amount of 35 bytes includes I
Transmission will be performed consecutively.
Module will send start condition, parameters on command, and stop condition.
If packet is recognized and correct, module will respond with ACK (0xAA).
If the packet is false/not recognized, module will respond with NACK (0xEE).
Example:
PC
USB Smart I/O
Byte Count
2
2
1
2
C reception with acknowledge.
: 0x58 0x02 0x24 0x00 0x82
: 0x58 0x02 0x24 0x90 0xF2
Byte Count
1
1
: 0x58 0x01 0x25 0x82
: 0x58 0x01 0xAA 0xFD
Byte Count
2 – 36
1
: 0x58 0x05 0x26 0xD0 0x01 0x02 0x03 0xA7
: 0x58 0x01 0xAA 0xFD
14
2
C line.
Command
Parameter
0x00 (nack)
0x24
0x01 (ack)
0x24
1 byte data
0xEE
2
C reception with not
2
C line and will be
2
C line.
Command
Parameter
0x25
0xAA
0xEE
2
C line.
Command
Parameter
0x26
1 – 35 byte
0xAA
0xEE
2
C device address.
-
-
-
-

Advertisement

Table of Contents
loading

Table of Contents