Start Counter; Get Counter; Get Version - Philips PC-Link Manual

Table of Contents

Advertisement

3.2.25. START COUNTER

Is used to command the module to activate a certain counter.
Host Command
Module Response
COUNTER parameter is the counter number that will be accessed, has a value
of 0 or 1.
When the counter is activated with this command, then the pin that the counter
used will be configured into a digital input with active internal pull-up resistor.
This new setting will also be saved into EEPROM.
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
will activate Counter 0.

3.2.26. GET COUNTER

Is used to command the module to read counting results of a certain counter.
Host Command
Module
Response
COUNTER parameter is the counter number that will be accessed, has a value
of 0 or 1.
MSB parameter is the most significant byte of counter reading results.
LSB parameter is the least significant byte of counter reading results.
If packet is recognized and correct, module will respond with data reading
results.
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 Counter 0 and module replies
that the counter value is 384 (0x0180).

3.2.27. GET VERSION

Is used to read module firmware version.
Host Command
Module
Response
Parameter Major and Minor show the firmware version in decimals with
Major.Minor format.
Byte Count
2
1
: 0x58 0x02 0x51 0x00 0x55
: 0x58 0x01 0xAA 0xFD
Byte Count
Command
2
0x52
3
0x52
1
0xEE
: 0x58 0x02 0x52 0x00 0x54
: 0x58 0x03 0x52 0x01 0x80 0xD2
Byte Count
Command
1
0xFE
3
0xFE
1
0xEE
18
Command
Parameter
0x51
COUNTER
0xAA
0xEE
Parameter
COUNTER
MSB
-
Parameter
-
Major
-
-
LSB
Minor

Advertisement

Table of Contents
loading

Table of Contents