Interface; Uart Interface - Philips PC-Link Manual

Table of Contents

Advertisement

ANALOG INPUT (J3) header consists of pins that can be used as analog inputs
or digital inputs/outputs. A7 pin can also be used as Counter 1.
DIGITAL I/O (J4) header consists of pins that can be used as digital
inputs/outputs. DIO7 pin can also be used as Counter 0.
GPIO & I2C (J10) header consists of pins that can be used as digital
inputs/outputs as well as SDA and SCL pins for I
ANALOG INPUT (J3)
AGND
A0
A2
A4
A6
Specification and characteristics of each pin can be seen in the datasheet.
3.

INTERFACE

PC-LINK USB SMART I/O has a USB interface that will be recognized and
accessible by computer as UART COM port (virtual).
3.1.

UART Interface

UART communication parameters are as follows:
• 110 – 256000 bps
• 8 data bit
• 1 stop bit
• no parity bit
no flow control
Each data packet sent by host begins with initial byte that is followed with 1
byte sum of command byte+data, 1 byte command code, n byte parameter (if
needed) and ends with 1 byte LRC.
Start Byte
Start Byte always have 0x58 ($58) hexadecimal or 88 decimal value.
Byte Count is the sum of Command and Parameter byte (excluding Start Byte,
Byte Count, and LRC).
LRC is an error checking byte by summing all bytes, from Start Byte to the last
Parameter. Only LSB will be taken from the sum results and two's complement
will be performed.
PC-LINK USB SMART I/O has a timeout feature for packet reception from host.
If there is no received data in ± 1 second, the next data will be treated as a
new data packet and module will wait for Start Byte.
If timeout occurs in the middle of the packet, then the packet will be ignored.
For commands that ask for data, the format of replied data packet from the
module will be the same as the format of data packet from the host.
DIGITAL I/O (J4)
VCC
PGND
A1
DIO0
A3
DIO2
A5
DIO4
A7
DIO6
Byte Count
Command
7
2
C.
GPIO & I2C (J10)
VCC
PGND
DIO1
GPIO0
DIO3
GPIO2
DIO5
GPIO4
DIO7
SDA
Parameter
VCC
GPIO1
GPIO3
SCL
LRC

Advertisement

Table of Contents
loading

Table of Contents