Send Dac; Stop Counter - Philips PC-Link Manual

Table of Contents

Advertisement

If the COUNT value is smaller than the amount of data on the buffer, then the
module will only send data as many as COUNT value.
After reading process, all of buffer contents will be erased.
If there is no data reception, 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
means that the computer requests for 3 data and module replies with reading
results, which are 0x01, 0x02, 0x03.

3.2.23. SEND DAC

Is used to command the module to send value to DAC and convert it into analog
voltage.
Host Command
Module Response
Parameter VALUE are the values (0-255) that will be converted into analog
voltage (0-±5.1).
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 send a value of 128 (0x80) to DAC that will be converted to about 2.58 V
voltage.

3.2.24. STOP COUNTER

Is used to command the module to stop a certain counter.
Host Command
Module Response
COUNTER parameter is the counter number that will be accessed, has a value
of 0 or 1.
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 stop Counter 1.
: 0x58 0x02 0x33 0x03 0x70
: 0x58 0x04 0x33 0x01 0x02 0x03 0x6B
Byte Count
2
1
: 0x58 0x02 0x40 0x80 0xE6
: 0x58 0x01 0xAA 0xFD
Byte Count
2
1
: 0x58 0x02 0x50 0x01 0x55
: 0x58 0x01 0xAA 0xFD
17
Command
Parameter
0x40
0xAA
0xEE
Command
Parameter
0x50
COUNTER
0xAA
0xEE
VALUE
-
-

Advertisement

Table of Contents
loading

Table of Contents