Advertisement

Quick Links

USB Smart I/O
Trademarks & Copyright
2
I
C is a Registered Trademark of Philips Semiconductors.
AT, IBM, and PC are trademarks of International Business Machines Corporation.
Pentium is a registered trademark of Intel Corporation.
Windows is a registered trademark of Microsoft Corporation.
HyperTerminal is copyright by Microsoft Corporation and Hilgraeve Inc.
Borland Delphi is copyright by Borland Software Corporation.

Advertisement

Table of Contents
loading

Summary of Contents for Philips PC-Link

  • Page 1 USB Smart I/O Trademarks & Copyright C is a Registered Trademark of Philips Semiconductors. AT, IBM, and PC are trademarks of International Business Machines Corporation. Pentium is a registered trademark of Intel Corporation. Windows is a registered trademark of Microsoft Corporation.
  • Page 2: Table Of Contents

    3.2.18. I2C Get Packet................... 3.2.19. Set Baud Rate..................... 3.2.20. Get Baud Rate.................... 3.2.21. Send UART....................3.2.22. Get UART..................... 3.2.23. Send DAC....................3.2.24. Stop Counter....................3.2.25. Start Counter....................3.2.26. Get Counter....................3.2.27. Get Version....................Testing Procedure..................Program Example..................Attachment PC-LINK USB SMART I/O Schematics............
  • Page 3: Introduction

    INTRODUCTION PC-LINK USB SMART I/O is a USB device that functions as controller of multiple input/output lines and interfaces. Examples of PC-LINK USB SMART I/O applications are as a relay/LED controller, reading analog signals from sensor, as a switch condition reader, calculate pulse counter, communications with modules via UART Interface, communications with sensors/RTC/EEPROM via ®...
  • Page 4: Hardware

    HARDWARE 2.1. COMPONENT LAYOUT 2.2. CONNECTOR AND JUMPER SETTINGS J2 DC Jack and J1 blue terminal are connectors for power supply input, whilst J12 blue terminal functions as voltage output from regulator. DC Jack Polarity Name Function Ground reference for power supply input 6.5-12VDC Connected to power supply input (6.5-12 volt) Name Function...
  • Page 5 SDA-SCL (J19) jumpers are used to activate the pull up resistors for SDA and SCL pins of the I C interface. SDA-SCL jumper Function Pull-up inactive (jumper released) SDA SCL Pull-up active (jumper attached) SDA SCL Important ! If more than one module are connected to I C-bus, then only the SDA-SCL jumpers of one of the modules need to be attached.
  • Page 6 J17 and J18 jumpers are used to select UART communication line. UART RS232 UART RS485 UART TTL J17 J18 J17 J18 J17 J18 Jumper on Jumper on Jumper position 1 – 2 position 2 – 3 released J13, J14, and J16 jumpers are used as bias-, termination, and bias +. Usually, in one RS485 line, there's only 1 pair of bias - and bias +, while terminations are only placed in the outermost modules.
  • Page 7: Interface

    DIO6 DIO7 Specification and characteristics of each pin can be seen in the datasheet. 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: •...
  • Page 8: Command Set

    For commands that do not ask for data, the module will respond with ACK (0xAA) or NACK (0xEE). Start Byte 0x01 0xAA / 0xEE Available commands and parameters can be seen on section 3.2. Default settings on purchase: ANALOG INPUT functions as analog input (no internal pull-up resistor). –...
  • Page 9: Set Function

    3.2.3. SET FUNCTION Is used to set the I/O function on the module. Byte Command Parameter Count Host 0x10 PORT ANALOG DIRECT PULL-UP Command 0xAA Module Response 0xEE PORT parameter is the port code that will be accessed. 0 represents Analog Input, 1 represents Digital I/O, and 2 represents General Purpose I/O.
  • Page 10: Get Port

    If the packet is false/not recognized, module will respond with NACK (0xEE). Example: : 0x58 0x02 0x11 0x02 0x93 USB Smart I/O : 0x58 0x04 0x11 0x00 0x00 0x1F 0x74 means that the computer requests for General Purpose I/O function and module replies that all General Purpose I/O are digital inputs with active internal pull-up resistors.
  • Page 11: Get Bit

    3.2.7. GET BIT Is used to command the module to read the value of 1 pin on a certain port. Byte Count Command Parameter Host Command 0x14 PORT 0x14 BITVALUE Module Response 0xEE PORT parameter is the port code that will be accessed. 0 represents Analog Input, 1 represents Digital I/O, and 2 represents General Purpose I/O.
  • Page 12: Get Adc

    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: : 0x58 0x02 0x16 0x01 0x8F USB Smart I/O : 0x58 0x02 0x16 0x88 0x08 means that the computer requests the value of Digital I/O and module replies that the PIN value of that port is 0x88.
  • Page 13: Get Bit Rate

    3.2.12. GET BIT RATE Is used to read bit rate I Byte Count Command Parameter Host Command 0x21 0x21 BITRATEH BITRATEL Module Response 0xEE 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.
  • Page 14: I2C Read

    3.2.15. I2C READ Is used to command the module to read 1 byte via I C line. Byte Count Command Parameter 0x00 (nack) Host Command 0x24 0x01 (ack) 0x24 1 byte data Module Response 0xEE Parameter of host is given value of 0 to respond the I C reception with not acknowledge and value of 1 to respond I C reception with acknowledge.
  • Page 15: I2C Get Packet

    will send start condition, 0xD0 (I C device write address that will be accessed), 0x01, 0x02, 0x03, and stop condition. 3.2.18. I2C GET PACKET Is used to command the module to read 1 data packet via I C line. Byte Count Command Parameter Host Command...
  • Page 16: Get Baud Rate

    3.2.20. GET BAUD RATE Is used to read UART baud rate. Byte Count Command Parameter Host Command 0x31 0x31 BAUDRATE Module Response 0xEE BAUDRATE parameter is the baud rate value code. If packet is recognized and correct, module will respond with baud rate value code.
  • Page 17: Send Dac

    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).
  • Page 18: Start Counter

    3.2.25. START COUNTER Is used to command the module to activate a certain counter. Byte Count Command Parameter Host Command 0x51 COUNTER 0xAA Module Response 0xEE 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.
  • Page 19: Testing Procedure

    1.0 (0x01 0x00). Testing Procedure 1. Connect DT-I/O I2C Peripheral to PC-LINK USB SMART I/O via J5 blue terminal. 2. Connect DT-I/O RS232-RS485 Converter, DT-I/O Neo RS232 to RS485 Converter, or DT-I/O USB to UART Converter to computer and to PC-LINK USB SMART I/O via RS485 (J15) blue terminal.
  • Page 20: Program Example

    15.UART TTL and RS232 (by shorting RX and TX) will produce the same byte values between Out and In, which are 1, 3, 7, 15, 31, 63, 127, and 255. When the connection between RX and TX is released, the status bar (in the bottom) will show that there is no data.
  • Page 21 Port Selection Bit Selection Logika Bit Set Bit Get Bit ADC Channel Selection ADC reading results Get ADC Port Selection Sent Byte Set Byte Reading result bytes Get Byte Start Counter Counter selection Stop Counter Get Counter Counter reading results...
  • Page 22 Sent data Read data column column I2C Send Packet Send UART Amount of I C bytes Amount of UART bytes that will be read that will be read I2C Get Get UART Packet ♦ Thank you for your confidence in using our products, if there are difficulties, questions, or suggestions regarding this product please contact our technical support: support@innovativeelectronics.com...
  • Page 23: Pc-Link Usb Smart I/O Schematics

    Attachment A. PC-LINK USB SMART I/O Schematics...

Table of Contents