COMMELL MPX-24794S User Manual

MPX-24794S User’s Guide Ver 1.10
MPX-24794S Serial USB Card
SPI Master, I2C Master, Counter, GPIO through USB Interfaces
User’s Guide
Taiwan Commate Computer Inc.
1
MPX-24794S User’s Guide Ver 1.10
. Please check our Web site for the latest
© Taiwan Commate Computer Inc. 2012, 2013
TCC reserves the right to change the content without notify version of this documentation.
19F, No 94, Sec 1, Shintai 5th Road, Sijhih Dist. New Taipei City 22102, Taiwan Tel: +886-2-2696-3909 FAX: +886-2-2696-3911 email: tech@commell.com.tw www: www.commell.com.tw
www.commell.com
Taiwan Commate Computer Inc.
2
MPX-24794S User’s Guide Ver 1.10
Contents
1 Introduction................................................................................................................. 2
1.1 Features............................................................................................................... 3
1.1.1 Hardware..................................................................................................... 3
1.1.2 Firmware..................................................................................................... 3
1.1.3 Software...................................................................................................... 4
1.2 Block Diagram.................................................................................................... 4
2 Hardware..................................................................................................................... 6
2.1 Card..................................................................................................................... 6
2.1.1 Connectors and Pins Definition.................................................................. 6
2.2 Cables.................................................................................................................. 9
2.2.1 OAL-24794S-CN1.................................................................................... 12
2.2.2 OAL-24794S-CN2.................................................................................... 14
2.2.3 OALUSB-H4-1 cable (option).................................................................. 15
2.2.4 OALUSB-H4 cable (option)..................................................................... 16
2.2.5 OAL-24794S-ADP Cable (option)........................................................... 16
2.3 Connecting to The PC....................................................................................... 19
2.3.1 Via Mini-PCIe Slot................................................................................... 19
2.3.2 Via OALUSB-H4-1 Cable (Option)......................................................... 20
2.3.3 Via OALUSB-H4 Cable (Option) ............................................................ 21
2.4 Optional GPIO Signal Isolation Boards............................................................ 22
2.4.1 ADP-GPION4I4O5V (option).................................................................. 22
2.4.2 ADP-GPION8I5V (option)....................................................................... 23
3 Device Drivers.......................................................................................................... 24
3.1 Device Drivers Installation............................................................................... 24
3.1.1 Windows 2000.......................................................................................... 25
3.1.2 Windows XP............................................................................................. 25
3.1.3 Windows Vista.......................................................................................... 26
3.1.4 Windows 7................................................................................................ 26
3.1.5 General Procedures................................................................................... 26
4 References................................................................................................................. 34
Taiwan Commate Computer Inc.
3
MPX-24794S User’s Guide Ver 1.10
Lists of Figures
Figure 1 MPX-24794S USB-Serial Card............................................................................ 2
Figure 2 Block Diagram...................................................................................................... 5
Figure 3 MPX-24794S Serial USB Card............................................................................ 6
Figure 4 MPX-24794S Connectors..................................................................................... 7
Figure 5 OAL-24794S-CN1 photo ................................................................................... 10
Figure 6 OAL-24794S-CN2 photo ................................................................................... 11
Figure 7 OAL-24794S-ADP photo................................................................................... 12
Figure 8 OAL-24794S-CN1 Cable................................................................................... 13
Figure 9 OAL-24794S-CN2 Cable................................................................................... 14
Figure 10 OALUSB-H4-1 cable....................................................................................... 15
Figure 11 OALUSB-H4 cable .......................................................................................... 16
Figure 12 OAL-24794S-ADP cable.................................................................................. 17
Figure 13 Inserting to a standard Mini-PCIe slot.............................................................. 20
Figure 14 How to use OALUSB-H4-1 cable.................................................................... 21
Figure 15 How to use OALUSB-H4 cable ....................................................................... 22
Figure 16 ADP-GPION4I4O5V ....................................................................................... 23
Figure 17 ADP-GPION8I5V ............................................................................................ 23
Figure 18 Device Driver files Organization...................................................................... 25
Figure 19 MPX-24794S vs. Device Manager................................................................... 32
Figure 20 MPX-24794S Property Dialog......................................................................... 33
List of Tables
Table 1 CN_GPIO1 Pin Definitions................................................................................... 8
Table 2 CN_GPIO2 Pin Definitions................................................................................... 8
Table 3 J1 Connector pin-out definitions............................................................................ 8
Table 4 USB signals related to full-mini PCIe card ........................................................... 9
Table 5 CN_USB Pin Out Definitions................................................................................ 9
Table 6 OAL-24794S-CN1 cable mapping ...................................................................... 14
Table 7 OAL-24794S-CN2 cable mapping ...................................................................... 15
Table 8 P1 (2x6 header) mapping..................................................................................... 17
Table 9 P2 (2x6 header) mapping..................................................................................... 18
Table 10 All other pins mapping ...................................................................................... 18
Taiwan Commate Computer Inc.
4
MPX-24794S User’s Guide Ver 1.10
Conventions
The numbers used in this manual.
Number Description
Decimal Decimal number will be noted just as normal numbers.
For example, 3456.
Hexadecimal Hexadecimal number will be noted in C-notation, the 0x prefix will be
presented. For example, 0x3456.
Signs used in this manual.
Sign Description
Permanent damage. This sign indicates that permanent damage to the device and system might cause if not fully understood or followed. You should not start using the product before you have read this information. Information sign. This sign indicates that this information might be useful while you are using this product. This information might also help saving your time if you have read them.
Taiwan Commate Computer Inc.
1
MPX-24794S User’s Guide Ver 1.10
Acronyms and Abbreviations
API Application Programming Interface AT24 Atmel AT24Cxxx I2C EEPROM AT25 Atmel AT25xxx SPI EEPROM CCP Common Communication Protocol CNTR Counter CNTR_EN Counter Enable input pin CNTR_CO Counter Compare True output pin CNTR_TO Counter Terminal Count output pin CSn# Chip Select EEPROM Electrically Erasable Programmable Read-Only Memory GPIO General Purpose Input/Output I2C Bus Inter-Integrated Circuit Bus I2CM I2C Master I2CmSCL I2C master clock I2CmSDA I2C master data LSB Least Significant Byte MHz Megahertz (one million hertz) MISO Master In Slave Out MOSI Master Out Slave In MSB Most Significant Byte PCIe PCI Express PWM Pulse Width Module SCLK SPI Clock SDK Software Development Kit SPI Bus Serial Peripheral Interface Bus SPIM SPI Master USB Universal Serial Bus
Taiwan Commate Computer Inc.
1
MPX-24794S User’s Guide Ver 1.10
1 Introduction
Figure 1 MPX-24794S USB-Serial Card
MPX-24794S Serial USB Card provides SPI master interface, I2C master interface, a 16-bit general purpose counter, and 16-bit GPIO interfaces via USB 2.0 full speed device connection. This card is in Mini-PCIe form factor and is using only the USB signaling portion of the standard Mini-PCIe interface.
This card is powered by a Cypress CY8C24794 micro-controller with 24 MHz system clock frequency. The USB is compliant to USB 2.0 full speed device. This card provides you a convenience way to connect your systems to those SPI slave devices, I2C slave devices, and devices that need GPIO interface. A 16-bit general counter with Enable pin input is also provided. A compare true pin out and terminal count pin out are also provided.
2.54mm pitch test pins are come with this card for your easy usage.
Device drivers for Microsoft Windows 2000, Windows XP (32-bit and 64-bit), Windows Vista (32-bit and 64-bit), and Windows 7 (32-bit and 64-bit) are supplied in the product CD.
Taiwan Commate Computer Inc.
2
MPX-24794S User’s Guide Ver 1.10
The MPX-24749S firmware provides APIs for SPI master functions, I2C master functions, 16-bit counter functions, and GPIO functions to be used by the USB host side applications. USB host side applications communicate with MPX-24794S firmware via USB Bulk In and Bulk Out transactions. The Common Communication Protocol (CCP) is formatted within Bulk In and Bulk Out data. Please refer to the MPX-24794S Programmer's Guide for detail technical information.
1.1 Features
1.1.1 Hardware
The MPX-24794S Serial USB Card is based on Cypress CY8C24794-24LTXI System-on-Chip controller, which has the following features:
M8C processor speeds up to 24 MHz
Low power at high speed
USB 2.0 compliant at full speed (12 Mbps)
SPI Master module on Port 0
SPI Master mode 0, 1, 2, 3 with 1 MHz clock frequency
Selectable SPI setup time and hold time
Connects up to five SPI slave devices (CS0#, CS1#, CS2#, CS3#, CS4#)
Programmable 16-bit general purpose counter
16-bit Counter at 1 MHz clock rate
16-bit Counter with enable input pin
16-bit Counter with compare_true and terminal_count output pins
I2C Master supports standard mode of 100 kbps date rate
8-bit I2C slave address with Read/Write bit on bit-0
Programmable 16-bit GPIOs
8-bit GPIO on Port 3
8-bit GPIO on Port 4
25-mA sink, 10-mA source on all GPIOs
Pull-up, pull-down, high Z, strong, or open-drain drive modes on all GPIOs
Configurable interrupt on all GPIOs
1.1.2 Firmware
The MPX-24794S firmware supports the following features. Please refer to the MPX­24794S Programmer Reference for details.
Optimized to run accurately and efficiently
Bulk Out endpoint for commands sending
Bulk In endpoint for responses receiving
Taiwan Commate Computer Inc.
3
MPX-24794S User’s Guide Ver 1.10
Interrupt In endpoint for checking certain status
Implement SPI master services
Implement I2C master services
Implement 16-bit general purpose counter services
Implement 16-bit general purpose input/out services
1.1.3 Software
The MPX-24794S provides the following software features. Please refer to the MPX­24794S Programmer’s Reference for details.
Devices drivers support Windows 2000, 32-/64-bit Windows XP, 32-/64-bit Windows Vista, and 32-/64-bit Windows 7.
Cypress CyAPI.LIB library for C/C++ programming
Cypress CyUSB.NET class library, CyUSB.DLL, for Microsoft Windows managed .NET programming. For example, Visual Basic, Visual C#, and JScript.
Example Code in Microsoft Visual Studio 2010.
1.2 Block Diagram
The following Figure shows the block diagram of MPX24792S.
Taiwan Commate Computer Inc.
4
MPX-24794S User’s Guide Ver 1.10
CY8C24794
USB 2.0 Full Speed
SPI Master (Port 0)
I2C Master (Port 2)
16-bit Counter (Port 2)
8-bit GPIO (Port 3)
8-bit GPIO (Port 4)
Taiwan Commate Computer Inc.
Figure 2 Block Diagram
5
MPX-24794S User’s Guide Ver 1.10
2 Hardware
This chapter depicts the MPX-24794S Serial USB Card in hardware point of view. These cover the following topics:
Card
Cables
2.1 Card
The Cypress CY8C24794-24LXTI micro controller is the major component of the MPX-24794S Serial USB Card. This CY8C24794 is located at the UA1 position.
Figure 3 MPX-24794S Serial USB Card
2.1.1 Connectors and Pins Definition
The following figure shows the connectors on the MPX-24794S card.
Taiwan Commate Computer Inc.
6
MPX-24794S User’s Guide Ver 1.10
Figure 4 MPX-24794S Connectors
These five connectors are:
1. CN_GPIO1 – The connector that contains SPI master signals and SPI slaves chip select signals, I2C master SCL and SDA signals, as well as Counter signals.
2. CN_GPIO2 – All GPIO signals.
3. JP1 - Firmware update signals and others.
4. Mini-PCIe USB only signals – Plus this board into a Mini-PCIe slot will connect to a USB port of your motherboard.
5. CN_USB – An alternate way to connect to a USB port of your motherboard via connect OALUSB-H4-1 cable to this connector and its type A plug-in connector.
The following table shows the pin-out definitions of the CN_GPIO1 connector.
PIN Description PIN Description
CN_GPIO1_1 GND CN_GPIO1_11 CS3# CN_GPIO1_2 GND CN_GPIO1_12 CS4# CN_GPIO1_3 PWR+5V CN_GPIO1_13 CNTR_EN CN_GPIO1_4 PWR+5V CN_GPIO1_14 CNTR_CO CN_GPIO1_5 MOSI CN_GPIO1_15 Reserved CN_GPIO1_6 MISO CN_GPIO1_16 CNTR_TO CN_GPIO1_7 SCLK CN_GPIO1_17 Reserved
Taiwan Commate Computer Inc.
7
Loading...
+ 27 hidden pages