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 MPX24794S 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 MPX24794S 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.