DEICO ONYX DE4001 User Manual

Usb - i2 c/spi converter

Advertisement

Quick Links

DE4001 USER MANUAL
DEICO ONYX
USB - I²C/SPI CONVERTER

Advertisement

Table of Contents
loading

Summary of Contents for DEICO ONYX DE4001

  • Page 1 DE4001 USER MANUAL DEICO ONYX USB - I²C/SPI CONVERTER...
  • Page 2 All rights reserved. Any unauthorized reproduction, photocopy, or use of the information herein, in whole or in part, without the prior written approval of DEICO Engineering Inc., is strictly prohibited. These are the original instructions in English. Document number: SBL-0038 Rev.0 2023...
  • Page 3: Table Of Contents

    SPI Master Operations ....................16 Set Bit Rate ....................... 16 Set SPI Mode ......................17 SPI Master Exchange ....................18 SPI Slave Operations ....................19 GPIO Control Panel ......................20 DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 1 / 31...
  • Page 4 Code is Blocked at Read or Write Operations ..............29 Multiple Device Connection Blocks Code ................ 29 Multiple Device Connected to PC Crashes Application ........... 29 SAFETY GUIDELINES ......................... 29 WARRANTY..........................29 DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 2 / 31...
  • Page 5: Preface

     Start Condition: SDA line switches from high to low before SCL line switches from high to low.  Address Frame: The address frame is always first in any new communication sequence. Each slave has a 7 or 10 bit unique address. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 3 / 31...
  • Page 6: Introduction To Spi

    Unlimited* *In practice, the number of slaves is limited by the load capacitance of the system, which reduces the ability of the master to accurately switch between voltage levels. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 4 / 31...
  • Page 7: Modes Of Spi

    I²C and SPI. I²C and SPI pins can also be used as GPIO or combined with I²C or SPI functionality. Onyx USB-I²C/SPI Converter is powered directly from the PC’s USB port. Features  Plug and play with DEICO Serial Center  USB powered  Master or slave mode ...
  • Page 8: Scope Of Delivery

    Scope of Delivery DEICO Onyx USB I²C/SPI Converter supplied with the following components.  DEICO Onyx USB I²C/SPI Converter (Figure  USB type-A to type-C cable (Figure  225mm 10 position socket to female pin cable (Figure  152.4mm 10 position female socket to socket cable (Figure Figure 5: DEICO Onyx USB I²C/SPI Converter...
  • Page 9: Getting Started

    Other option is used to install the D2XX drivers. If the drivers are not already installed, user can install drivers by selecting this option. Figure 9: Setup - Selecting additional tasks DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 7 / 31...
  • Page 10: Installing D2Xx Drivers

    To complete driver installation, user should click to extract and proceed to installation. Driver installation wizard asks user to agree to license agreement. After this step, driver installation is completed. Figure 11: Setup - Completing driver installation DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 8 / 31...
  • Page 11: Completing Onyx Controller Installation

    Completing Onyx Controller Installation User completes the installation by clicking “Finish”. Figure 12: Completing installation DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 9 / 31...
  • Page 12: Installation Path

    Figure 13: Connection window Device description, ID number, serial number and device status are displayed in the device list. User can use the “Connect” button to open the device. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 10 / 31...
  • Page 13: Control Window

    Right next to the device information there is a control for selecting the operation mode. There are four operation modes of Onyx I²C/SPI Adapter, which are I²C/SPI, I²C/GPIO, SPI/GPIO and GPIO modes. Figure 15: Selecting operation mode DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 11 / 31...
  • Page 14: I²C Control Panel

    In the I²C master mode, user can:  Set bit rate  Write to a slave device  Read from a slave device  Read a register value from a slave device DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 12 / 31...
  • Page 15: Set Bit Rate

    Note Set bit rate works for master operations only. Master Write Operation Slave address Message area Write button Utility operations Figure 18: I²C master - Write operation DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 13 / 31...
  • Page 16: Master Read And Register Read Operations

    Number of bytes to read Number of bytes to read from register Read button Register address Register read button Figure 19: I²C master - Read & register read operations DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 14 / 31...
  • Page 17: I²C Slave Operations

    If user selects a mode that enables the SPI, SPI control panel will be displayed. Similar to I²C there are two tabs for master and slave operations. Figure 21: SPI control panel DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 15 / 31...
  • Page 18: Spi Master Operations

    Messages” for settings. However, these settings are saved to file only, if user resets the device or powers off, bit rate must be set again to operate at the desired speed. Note Set bit rate works for master operations only. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 16 / 31...
  • Page 19: Set Spi Mode

    Messages” for settings. However, these settings are saved to file only, if user resets the device or powers off, configuration must be set again to operate at the desired speed. Note Set configuration works for master operations only. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 17 / 31...
  • Page 20: Spi Master Exchange

    Received data by the SPI master is shown in the transaction information panel. If user wants to read data only, “00” bytes can be entered into the message field. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 18 / 31...
  • Page 21: Spi Slave Operations

    While the SPI slave is enabled, any received or transmitted data will be written into the transaction information panel. Enables slave Sets slave response Figure 25: SPI slave control panel DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 19 / 31...
  • Page 22: Gpio Control Panel

    Four fields are editable in the GPIO control panel, which are directions, pull-up mode, output value and the read value. Each field can be set exclusively for a pin. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 20 / 31...
  • Page 23: Set Directions And Pull-Up Mode

    Output is disabled for this pin. GPIO#4 is configured as “Output” and pull mode is disabled for that pin. Sets configuration and output values Reads GPIO pins Figure 28: GPIO control panel DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 21 / 31...
  • Page 24: Set Output Values And Read Values

    Note Values and configuration of pins are also displayed on the transaction information panel. Note Due to various communication delays or other issues, pin values may not be updated immediately. User must click to “Get” button to update read values. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 22 / 31...
  • Page 25: Transaction Information Panel

    This panel can be cleared using the “Clear Log” button. Also, if user wants to examine the message in more detail, there is an inspect button on the right of each message. Figure 31: Transaction viewer DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 23 / 31...
  • Page 26: Log Messages

    Logging is enabled by default. Figure 32: Log actions Figure 33: Log messages Log panel can be opened using menu option “Open Log Window”. User can inspect log messages here. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 24 / 31...
  • Page 27: Saved Settings And Log Messages

    Windows Currently, Onyx Controller can run on 64-bit version of Windows. 32-bit version compatibility will be provided in the future. Linux Linux compatibility will be available in the future. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 25 / 31...
  • Page 28: Hardware Overview

    HARDWARE OVERVIEW Block Diagram of Onyx Figure 36: Block diagram of Onyx Interfaces and Connections of Onyx Figure 37 Cable pinout Figure 38: Target connector DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 26 / 31...
  • Page 29 Via the USB Type-C connector Onyx is connected to a PC. Onyx gets its Connector power via USB connector. ACT LED ACT LED lights up yellow while the I²C or SPI communication is active. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 27 / 31...
  • Page 30: Troubleshooting

    API. Currently there is no solution to this problem. Note Data still can be written at speeds higher than 6MHz, but read data may be corrupted. DE4001_USER MANUAL Rev. No:0 Rev. Date: 05.08.2023 www.deico.com.tr 28 / 31...
  • Page 31: Code Is Blocked At Read Or Write Operations

    The warranty does not cover damages resulting from normal wear and tear. Authorized service centers designated by DEICO will provide free repair services during the warranty period. If repair is not feasible, DEICO will replace the product with the same model or an equivalent one.

Table of Contents