Get Adc; Set Bit Rate - Philips PC-Link Manual

Table of Contents

Advertisement

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 the value of Digital I/O and module replies
that the PIN value of that port is 0x88.

3.2.10. GET ADC

Is used to command the module to read ADC value of a certain channel.
Host Command
Module
Response
CHANNEL parameter is the ADC channels (0-7) that will be read.
MSB parameter is the most significant byte of ADC reading result.
LSB parameter is the least significant byte of ADC reading result.
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 the value of ADC channel 3 and module
replies that the ADC value of that channel is 1023 (0x03FF).

3.2.11. SET BIT RATE

Is used to set the 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. The allowed BITRATE value are
around 30-400.
This setting will be saved on EEPROM so it will not be erased when module is
powered off.
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
sets the bit rate for I
: 0x58 0x02 0x16 0x01 0x8F
: 0x58 0x02 0x16 0x88 0x08
Byte Count
Command
2
3
1
: 0x58 0x02 0x17 0x03 0x8C
: 0x58 0x03 0x17 0x03 0xFF 0x8C
2
C bit rate.
Byte Count
Command
3
1
: 0x58 0x03 0x20 0x00 0x64 0x21
: 0x58 0x01 0xAA 0xFD
2
C to 100 (0x0064) kHz.
12
0x17
0x17
MSB
0xEE
0x20
BITRATEH
0xAA
0xEE
Parameter
CHANNEL
LSB
-
Parameter
BITRATEL
-

Advertisement

Table of Contents
loading

Table of Contents