Innodisk EMUI-0D01 User Manual

Usb to 32bit dio

Advertisement

EMUI-0D01
USB to 32bit DIO
User Manual
Rev 1.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EMUI-0D01 and is the answer not in the manual?

Questions and answers

Summary of Contents for Innodisk EMUI-0D01

  • Page 1 EMUI-0D01 USB to 32bit DIO User Manual Rev 1.0...
  • Page 2 Copyright Information 2005-2016 © Innodisk Corporation. All Rights Reserved Innodisk™ is trademark or registered trademark of Innodisk Corporation. This document is subject to change and revision without notice. No part of this document may be reproduced in any form by any photographic, electronic, mechanical or other means, or used in any information storage and retrieval system, without prior written permission from Innodisk Corporation.
  • Page 3: Revision History

    2005-2016 © Innodisk Corporation. All Rights Reserved Revision History Revision Date Description 2016/10/04 Initial Release...
  • Page 4: Table Of Contents

    40DP-1.25 Connector Pin Define ......................2 Control Bitmap ..........................3 Windows OS ..........................4 4.1. Installation ..........................4 4.2. EMUI-0D01 Console Utility for Windows ................... 6 4.2.1. Command: OD [n] ....................... 6 4.2.2. Command: CD ........................6 4.2.3. Command: SC ........................6 4.2.4.
  • Page 5 2005-2016 © Innodisk Corporation. All Rights Reserved 6.2.8. EMUIClearEvent ........................ 19 6.2.9. EMUIExpCfg ........................19 6.2.10. EMUIImpCfg ........................20 Contact us ............................21...
  • Page 6: Introduction

    2005-2016 © Innodisk Corporation. All Rights Reserved Introduction Innodisk EMUI-0D01 USB DIO card provides 32bit DIO grouped into four ports: A, B, C and D. It can connect with either mPCIe slot or USB pin header. Each port can be configured by software to function as either input or output.
  • Page 7: Connector Pin Define

    2005-2016 © Innodisk Corporation. All Rights Reserved Connector Pin Define DB37 Male Connector Pin Define Signal Signal 40DP-1.25 Connector Pin Define Signal Signal PD7/INT3...
  • Page 8: Control Bitmap

    2005-2016 © Innodisk Corporation. All Rights Reserved PD6/INT2 PD5/INT1 PD4/INT0 +3.3V(Reserve) +3.3V(Reserve) Control Bitmap DIO Port Status Control Bit 7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 x=A, B, C, D Bit[7:0] 0=Pull-down (Low), 1=Pull-up (High) Example: Port A[7:0] status 0xFF=1111 1111, 0x55=0101 0101, 0xAA=1010 1010...
  • Page 9: Windows Os

    2005-2016 © Innodisk Corporation. All Rights Reserved Windows OS 4.1. Installation Step1. Install EMUI-0D01 either with mPCIe slot or USB pin header. The device named “innodisk USB DIO” can be found in “Device Manager”. Click “Update Driver Software” to install driver. Step2.
  • Page 10 2005-2016 © Innodisk Corporation. All Rights Reserved Step3. Browse the path linking to EMUI-0D01 driver. Step4. After installing driver, device can be recognized as a COM port by Windows CDC-ACM inbox driver (Compaq USB Modem Driver).
  • Page 11: Emui-0D01 Console Utility For Windows

    2005-2016 © Innodisk Corporation. All Rights Reserved 4.2. EMUI-0D01 Console Utility for Windows You can use this console utility to test EMUI-0D01 in Windows. Please refer to Section 3 Control Bitmap used in this utility. Every function in this utility we provide C code API library for programming.
  • Page 12: Command: Sa

    2005-2016 © Innodisk Corporation. All Rights Reserved 4.2.4. Command: SA Description: Show directions and status of all 4 ports Example: 4.2.5. Command: SV Description: Show FW version and API version Example: 4.2.6. Command: RE Description: Reset to factory default setting Example: 4.2.7.
  • Page 13: Command: Ei

    2005-2016 © Innodisk Corporation. All Rights Reserved Example: Set Port A status to 0x55 Example: Read Port A direction and status Example: Read Port A status Note: Input port cannot set status. Its status must be given by external output port.
  • Page 14: Command: Mo En/Ds

    2005-2016 © Innodisk Corporation. All Rights Reserved Example: Get external interrupt configuration Example: Enable all external interrupt and set it to falling edge. Note: When enabling external interrupt, Port D will be set to input automatically, and bit0-bit3 only can be input as well.
  • Page 15: Command: Cr Al/It/Er

    2005-2016 © Innodisk Corporation. All Rights Reserved Example: Interrupt occurs on INT0 and INT1 Example: Interrupt occurs on all INT port (INT0-INT3) Example: EEPROM error occurs 4.2.10. Command: CR AL/IT/ER Description: Clear interrupt or EEPROM error events You can clear persistent interrupt events or EEPROM error events.
  • Page 16: Command: Ic

    Example: Linux OS 5.1. Installation Install EMUI-0D01 either with mPCIe slot or USB pin header. The device will be recognized as ttyACM% (%=0, 1…) by using native CDC-ACM driver. Type command “dmesg” to see messages below. Generally the name would be ttyACM0 or ttyACM1 in Linux.
  • Page 17: Software Api

    Real COM port number-1 would be the “int” value for API. Example: 0=COM1, 1=COM2, 2=COM3…254=COM255, 255=COM256 Linux EMUI-0D01 supports the following COM names. The names map “int” value start from 0. Generally the name would be ttyACM0 or ttyACM1 in Linux. Example: 24=ttyACM0, 25=ttyACM1...
  • Page 18: Function Description

    2005-2016 © Innodisk Corporation. All Rights Reserved Index Port Index Port Index Port ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 ttyS5 ttyS6 ttyS7 ttyS8 ttyS9 ttyS10 ttyS11 ttyS12 ttyS13 ttyS14 ttyS15 ttyUSB0 ttyUSB1 ttyUSB2 ttyUSB3 ttyUSB4 ttyUSB5 ttyAMA0 ttyAMA1 ttyACM0 ttyACM1 rfcomm0...
  • Page 19: Emuiopendevice

    2005-2016 © Innodisk Corporation. All Rights Reserved Return Code: Value Description Success Fail 6.2.2. EMUIOpenDevice Description: Open virtual COM port. SYSTAX: Int EMUIOpenDevice(int com_port) Member: com_port: [input] The virtual COM port number Return Code: Value Description Success Out of range --> com_port > 255...
  • Page 20: Emuiioconfig

    2005-2016 © Innodisk Corporation. All Rights Reserved 6.2.4. EMUIIOConfig Description: Set/Get digital I/O direction and status. SYSTAX: Int EMUIIOConfig (IO_INFO *io_info) IO_INFO Struct: typedef struct /* Set & Get config */ int com_port; int dio_port; int mode; /* Set config */ int dir_set;...
  • Page 21: Emuiexintrconfig

    2005-2016 © Innodisk Corporation. All Rights Reserved unsigned char ex_intr; } GET_RTN; Return Code: Value Description Success Fail Input port cannot set status 6.2.5. EMUIExIntrConfig Description: Set/Get external interrupt configuration of Port D Bit4-Bit7. SYSTAX: Int EMUIExIntrConfig(EXINTR_INFO *exintr_info) EXINTR Struct: typedef struct /* Set &...
  • Page 22: Emuireset

    2005-2016 © Innodisk Corporation. All Rights Reserved get_exintr_rtn: [output] use in mode 2 “get” function, return ex_intr typedef struct /* IO config */ int dio_port; int direction; unsigned char status; /* External interrupt */ unsigned char ex_intr; } GET_RTN; Return Code:...
  • Page 23 2005-2016 © Innodisk Corporation. All Rights Reserved 3. EEPROM Error (used to store configuration): Send event every 5 sec after the module power on. If you clear this event, it will not send event anymore until next power on. SYSTAX:...
  • Page 24: Emuiclearevent

    2005-2016 © Innodisk Corporation. All Rights Reserved Fail COM port was not opened / Non EMUI DIO 6.2.8. EMUIClearEvent Description: Clear interrupt or EEPROM error events. SYSTAX: Int EMUIClearEvent(EVENT_INFO *event_info) EVENT_INFO struct: typedef struct int mode; int com_port; } EVENT_INFO;...
  • Page 25: Emuiimpcfg

    2005-2016 © Innodisk Corporation. All Rights Reserved Member: com_port: [input] The virtual COM port number file_name: [input] File name and path Return Code: Value Description Success Fail 6.2.10. EMUIImpCfg Description: Import configuration. SYSTAX: Int EMUIImpCfg(CFG_FILE_INFO *cfg_file_info) CFG_FILE_INFO Struct: typedef struct com_port;...
  • Page 26: Contact Us

    2005-2016 © Innodisk Corporation. All Rights Reserved Contact us Headquarters (Taiwan) 5F., No. 237, Sec. 1, Datong Rd., Xizhi Dist., New Taipei City 221, Taiwan Tel: +886-2-77033000 Email: sales@innodisk.com Branch Offices: usasales@innodisk.com +1-510-770-9421 Europe eusales@innodisk.com +31-040-282-1818 Japan jpsales@innodisk.com +81-3-6667-0161 China sales_cn@innodisk.com...

Table of Contents