MCP2210
USB-to-SPI Protocol Converter with GPIO (Master Mode)
Features:
Universal Serial Bus (USB)
• Supports Full-Speed USB (12 Mb/s)
• Human Interface Device (HID) device
• 128-Byte Buffer to Handle Data Throughput:
- 64-byte transmit
- 64-byte receive
• Fully Configurable VID, PID Assignments and
String Descriptor (factory programming also avail-
able)
• Bus Powered (factory default) or Self-Powered
(can be selected through special USB
commands)
• USB 2.0 Compliant
USB Driver and Software Support
• Uses Standard HID Drivers (built-in support on
Windows
®
XP, Vista, 7, Linux and Mac OS
®
)
• Configuration Utility for Device’s Power-up
Configuration
• Utility for USB-SPI Communication, GPIO
Manipulation and Miscellaneous Features Usage
SPI Master Peripheral
• Supports all Four SPI modes (Mode 0, 1, 2, 3)
• Bit Rates from 1500 bps up to 12 Mbps
• Configurable Delays for SPI Transactions:
- Chip Select (assert) to 1
st
byte of data delay
- Data to data delay
- Data to Chip Select (de-assert) delay
• SPI Transactions Lengths of up to 65535 Bytes
Long
• Up to 9 Chip Select lines – to be used in any
combination for a given SPI transaction (the Chip
Select lines are shared between GPIOs and
alternate function pins; certain GPs – up to 9 of
them – can be assigned with the Chip Select
functionality)
General Purpose Input/Output (GPIO) Pins
• Nine General Purpose I/O Pins
EEPROM
• 256 Bytes of User EEPROM (accessible through
certain USB commands)
RST 1
GP0 2
GP1 3
GP2 4
GP3 5
6
MOSI
7
GP4
8
SCK
9 10
MISO
DS22288A-page 1
GP5
EP
21
Package Types:
The device will be offered in the following packages:
• 20-lead QFN (5 x 5 mm)
• 20-lead SOIC
• 20-lead SSOP
MCP2210
SOIC, SSOP
V
DD
1
OSC1 2
OSC2 3
RST 4
GP0 5
GP1 6
GP2 7
GP3 8
MOSI 9
GP4 10
20 V
SS
19 D+
18 D-
17 V
USB
16 GP8
15 GP7
14 GP6
13 MISO
12 GP5
11 SCK
MCP2210
5x5 QFN*
OSC2
OSC1
V
DD
V
SS
D+
15 D-
14 V
USB
13 GP8
12 GP7
11 GP6
20 19 18 17 16
* Includes Exposed Thermal Pad (EP); see
Table 1-1.
Other
• USB Activity LED Output
• SSPND Output Pin (to signal USB Suspend state)
• USBCFG Output Pin (indicates when the
enumeration is completed)
• Operating Voltage: 3.3-5.5V
• Oscillator Input: 12 MHz
• Industrial Operating Temperature: -40°C to +85°C
2011 Microchip Technology Inc.
MCP2210
Block Diagram
Dedicated
function pins
CS8:0
GP8-GP0
GPIO
256-Byte
EEPROM
Configuration
and Control
Regs
Chip
Select
Control
SCK
MISO
MOSI
Control
SPI
(Master)
Baud
Generator
USB
Protocol
Controller
USB
XCVR
D+
D-
3.3V
LDO
State
Clock
V
SS
USB
Clock
V
USB
OSC
Reset
Vss
OSC1
OSC2
RST
V
DD
DS22288A-page 2
2011 Microchip Technology Inc.
MCP2210
1.0
FUNCTIONAL DESCRIPTION
The MCP2210 device is a USB-to-SPI Master
converter which enables USB connectivity in
applications that have an SPI interface. The device
reduces external components by integrating the USB
termination resistors.
The MCP2210 also has 256 bytes of integrated user
EEPROM.
The MCP2210 has nine general purpose input/output
pins. Seven pins have alternate functions to indicate
USB and communication status. See
Table 1-1
and
Section 1.6 “GP Module”
for details about the pin
functions.
TABLE 1-1:
MCP2210
PINOUT DESCRIPTION
Alternate Function 2
(dedicated functions)
Alternate Function 1
(Chip Selects)
Standard Function
(GPIO)
QFN
SOIC,
SSOP
Symbol
Type
Description
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
RST
GP0
GP1
GP2
GP3
MOSI
GP4
SCK
GP5
MISO
GP6
GP7
GP8
V
USB
D-
D+
V
SS
V
DD
OSC1
OSC2
I
I/O
I/O
I/O
I/O
O
I/O
O
I/O
I
I/O
I/O
I/O
USB
USB
USB
GND
P
I
O
—
GPIO0
GPIO1
GPIO2
GPIO3
—
GPIO4
—
GPIO5
—
GPIO6
GPIO7
GPIO8
—
—
—
—
—
—
—
—
CS0
CS1
CS2
CS3
—
CS4
—
CS5
—
CS6
CS7
CS8
—
—
—
—
—
—
—
—
—
—
USB Suspend
—
USB Low Power
—
USB Configured
—
External Interrupt
SPI Bus Release ACK
SPI Bus Release REQ
—
—
—
—
—
—
—
Reset input
General Purpose I/O
General Purpose I/O
General Purpose I/O
SPI Master output
General Purpose I/O
SPI Clock output
General Purpose I/O
SPI Master input
General Purpose I/O
General Purpose I/O
General Purpose I/O
USB Regulator output
USB D-
USB D+
Ground
Power
Oscillator input
Oscillator output
SPI Transfer Traffic LED General Purpose I/O
2011 Microchip Technology Inc.
DS22288A-page 3
MCP2210
1.1
Supported Operating Systems
1.3.2
The following operating systems are supported:
• Windows XP/Vista/7
• Linux
• Mac OS
SPI MODULE POWER-UP
CONFIGURATION
Default parameters:
• 1 Mbit
• 4 bytes to transfer per SPI transaction
• GP1 as Chip Select line
1.1.1
ENUMERATION
The MCP2210 will enumerate as a USB device after
Power-on Reset (POR). The device enumerates as a
Human Interface Device (HID) only.
1.4
USB Protocol Controller
The USB controller in the MCP2210 is full-speed USB
2.0 compliant.
• HID only device used for:
- SPI transfers
- I/O control
- EEPROM access
- Chip configuration manipulation
• 128-byte buffer to handle data for SPI transfers
- 64-byte transmit
- 64-byte receive
• Fully configurable VID, PID assignments, string
descriptors (stored on-chip) and chip power-up
settings (default chip settings and SPI transfer
parameters)
• Bus powered or self-powered
1.1.1.1
Human Interface Device (HID)
The MCP2210 enumerates as an HID, so the device
can be configured and all the other functionalities can
be controlled. A DLL package that facilitates I/O control
through a custom interface is supplied by Microchip
and is available on the product landing page.
1.2
Control Module
The control module is the heart of the MCP2210. All
other modules are tied together and controlled via the
control module. The control module manages the data
transfers between the USB and the SPI, as well as
command requests generated by the USB host
controller, and commands for controlling the function of
the SPI and I/O.
1.4.1
DESCRIPTORS
1.2.1
SPI INTERFACE
The control module interfaces to the SPI and USB
modules.
1.2.2
INTERFACING TO THE DEVICE
The MCP2210 can be accessed for reading and writing
via USB host commands. The device cannot be
accessed and controlled via the SPI interface.
The string descriptors are stored internally in the
MCP2210 and they can be changed so when the chip
enumerates, the host gets the customer’s own product
and manufacturer names. They can be customized to
the user’s needs by using the Microchip provided con-
figuration utility or a custom built application that will
send the proper USB commands for storing the new
descriptors into the chip.
1.4.2
USB EVENTS
1.3
SPI Module
The MCP2210 SPI module provides the MOSI, MISO
and SCK signals to the outside world. The module has
the ability to control the GP pins (as Chip Select) only if
these pins are configured for Chip Select operation.
The MCP2210 provides support for signaling important
USB-related events such as:
• USB Suspend and Resume – these states are
signaled on the GP2, if the pin is configured for its
dedicated function
- USB Suspend mode is entered when a
suspend signaling event is detected on the
USB bus
- USB Resume is signaled when one of the
following events is occurring:
a) Resume signaling is detected or generated
b) A USB Reset signal is detected
c) A device Reset occurs
• USB device enumerated successfully (this state is
signaled if the GP4 is configured for its dedicated
function)
• USB Low-Power mode
1.3.1
SPI MODULE FEATURES
The SPI module has the following configurable
features:
• Bit rates
• Delays
• Chip Select pin assignments (up to 9 Chip Select
lines)
All the above features are available for customization
using certain USB commands.
DS22288A-page 4
2011 Microchip Technology Inc.
MCP2210
1.5
USB Transceiver
FIGURE 1-1:
The MCP2210 has a built-in, USB 2.0, full-speed
transceiver internally connected to the USB module.
The USB transceiver obtains power from the V
USB
pin,
which is internally connected to a 3.3V internal
regulator. The best electrical signal quality is obtained
when V
USB
is locally bypassed with a high-quality
ceramic capacitor.
The internal 3.3V regulator draws power from the V
DD
pin. In certain scenarios, where V
DD
is lower than
3.3V+ internal LDO dropout, the V
USB
pin must be tied
to an external regulated 3.3V. This will allow the USB
transceiver to work correctly, while the I/O voltage in
the rest of the system can be lower than 3.3V. As an
example, in a system where the MCP2210 is used and
the I/O required is of 2.2V, the V
DD
of the chip will be
tied to the 2.2V digital power rail, while the V
USB
pin
must be connected to a regulated 3.3V power supply.
MCP2210 INTERNAL
POWER SUPPLY DETAILS
V
DD
IN
LDO
3.3V
V
USB
OUT
D+
D-
USB
Transceiver
1.5.1
INTERNAL PULL-UP RESISTORS
The provided V
DD
voltage has a direct influence on the
voltage levels present on the GPIO and SPI module
pins (GP8-GP0, MOSI, MISO and SCK). When V
DD
is
5V, all of these pins will have a logical ‘1’ around 5V
with the variations specified in
Section 4.1 “DC Char-
acteristics”.
For applications that require a 3.3V logical ‘1’ level,
V
DD
must be connected to a power supply providing
the 3.3V voltage. In this case, the internal USB
transceiver LDO cannot provide the required 3.3V
power. It is necessary to also connect the V
USB
pin of
the MCP2210 to the 3.3V power supply rail. This way,
the USB transceiver is powered up directly from the
3.3V power supply.
The MCP2210 device has built-in pull-up resistors
designed to meet the requirements for full-speed USB.
1.5.2
MCP2210 POWER OPTIONS
The following are the main power options for the
MCP2210:
• USB Bus Powered (5V)
• Self Powered (from 3.3V to 5V), while the V
USB
pin is supplied with 3.3V (regulated). If the V
DD
is
powered with 5V, then the V
USB
will be powered
by the internal regulator and the V
USB
pin will
need only a decoupling capacitor
1.5.2.1
Internal Power Supply Details
MCP2210 offers various options for power supply. To
meet the required USB signaling levels, MCP2210
device incorporates an internal LDO used solely by the
USB transceiver, in order to present the correct D+/D
voltage levels.
Figure 1-1
shows the internal connections of the USB
transceiver LDO in relation with the V
DD
power supply
rail. The output of the USB transceiver LDO is tied to
the V
USB
line.
A capacitor connected to the V
USB
pin is required if the
USB transceiver LDO provides the 3.3V supply to the
transceiver.
1.5.2.2
USB Bus Powered (5V)
In Bus Power Only mode, the entire power for the
application is drawn from the USB (see
Figure 1-2).
This is effectively the simplest power method for the
device.
FIGURE 1-2:
V
BUS
BUS POWER ONLY
V
DD
V
USB
V
SS
2011 Microchip Technology Inc.
DS22288A-page 5