Get Bit Rate; I2C Start; I2C Write - Philips PC-Link Manual

Table of Contents

Advertisement

3.2.12. GET BIT RATE

Is used to read bit rate I
Host Command
Module
Response
RATEH parameter BIT is the most significant byte of BITRATE.
RATEL parameter BIT is the least significant byte of BITRATE.
BITRATE parameter is the bit rate value in kHz.
If packet is recognized and correct, module will respond with bit rate value.
If the packet is false/not recognized, module will respond with NACK (0xEE).
Example:
PC
USB Smart I/O
means that the computer requests bit rate value and module replies that the bit
rate value is 50 (0x0032) kHz.

3.2.13. I2C START

Is used to command the module to send the start 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.14. I2C WRITE

Is used to command the module to send 1 byte via 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
sends a value of 160 (0xA0) via I
2
C.
Byte Count
Command
1
0x21
3
0x21
1
0xEE
: 0x58 0x01 0x21 0x86
: 0x58 0x03 0x21 0x00 0x32 0x52
Byte Count
1
1
: 0x58 0x01 0x22 0x85
: 0x58 0x01 0xAA 0xFD
Byte Count
2
1
: 0x58 0x02 0x23 0xA0 0xE3
: 0x58 0x01 0xAA 0xFD
2
C.
13
Parameter
-
BITRATEH
-
2
C line.
Command
Parameter
0x22
0xAA
0xEE
2
C line.
Command
Parameter
0x23
1 byte data
0xAA
0xEE
BITRATEL
-
-
-

Advertisement

Table of Contents
loading

Table of Contents