Example: quiz answers

MCP2210 USB-to-SPI Protocol Converter with GPIO (Master …

2011 Microchip Technology 1 MCP2210 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 CompliantUSB 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 UsageSPI 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 1st 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 PinsEEPROM 256 Bytes of User EEPROM (accessible through certain USB commands)Package Types:The

2011 Microchip Technology Inc. DS22288A-page 5 MCP2210 1.5 USB Transceiver The MCP2210 has a built-in, USB 2.0, full-speed transceiver internally connected to the USB module.

Tags:

  With, Converter, Protocol, Module, Gpio, To spi protocol converter with gpio

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of MCP2210 USB-to-SPI Protocol Converter with GPIO (Master …

1 2011 Microchip Technology 1 MCP2210 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 CompliantUSB 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 UsageSPI 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 1st 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.)

2 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 PinsEEPROM 256 Bytes of User EEPROM (accessible through certain USB commands)Package Types:The device will be offered in the following packages: 20-lead QFN (5 x 5 mm) 20-lead SOIC 20-lead SSOPO ther USB Activity LED Output SSPND Output Pin (to signal USB Suspend state) USBCFG Output Pin (indicates when the enumeration is completed) Operating Voltage: Oscillator Input: 12 MHz Industrial Operating Temperature: -40 C to +85 C2 MCP2210 SOIC, SSOPOSC2 OSC1 RST123420191817 VDDVSSD+D-VUSBGP0516GP8GP1615GP2714GP6GP 7 MCP22105x5 QFN*GP1GP2 RSTD-VUSBMOSIGP8GP4 SCKGP5GP7 OSC2 OSC1 VDDVSSGP0EP20119181734151413126789211312 11 MISOGP5 SCKGP38 MOSI9GP410D+16GP3GP6511 MISO10* Includes Exposed Thermal Pad (EP); see Ta b l e 1 - Protocol Converter with gpio (Master Mode)MCP2210DS22288A-page 2 2011 Microchip Technology Diagram GPIOC ontrolUSB Protocol ControllerUSB XCVRVSSOSCS tate ClockUSB LDO256-Byte EEPROMC onfiguration and Control RegsSPI (Master)Baud GeneratorChip Select ControlGP8-GP0D+D-VUSBVDDRSTOSC1 OSC2 VssMOSIMISOSCKCS8:0 Dedicated function pins 2011 Microchip Technology DESCRIPTIONThe MCP2210 device is a USB-to-SPI Masterconverter which enables USB connectivity inapplications that have an SPI interface.

3 The devicereduces external components by integrating the USBtermination resistors. The MCP2210 also has 256 bytes of integrated MCP2210 has nine general purpose input/outputpins. Seven pins have alternate functions to indicateUSB and communication status. See Ta b l e 1 - 1 andSection GP module for details about the 1-1:PINOUT DESCRIPTIONMCP2210 SymbolTypeStandard Function( gpio )Alternate Function 1(Chip Selects)Alternate Function 2(dedicated functions)DescriptionQFNSOIC, SSOP14 RSTI Reset input25GP0I/OGPIO0CS0 General Purpose I/O36GP1I/OGPIO1CS1 General Purpose I/O47GP2I/OGPIO2CS2 USB SuspendGeneral Purpose I/O58GP3I/OGPIO3CS3 SPI Transfer Traffic LED General Purpose I/O69 MOSIO SPI Master output710GP4I/OGPIO4CS4 USB Low PowerGeneral Purpose I/O811 SCKO SPI Clock output912GP5I/OGPIO5CS5 USB ConfiguredGeneral Purpose I/O1013 MISOI SPI Master input1114GP6I/OGPIO6CS6 External InterruptGeneral Purpose I/O1215GP7I/OGPIO7CS7 SPI Bus Release ACKG eneral Purpose I/O1316GP8I/OGPIO8CS8 SPI Bus Release REQG eneral Purpose I/O1417 VUSBUSB USB Regulator output1518D-USB USB D-1619D+USB USB D+1720 VSSGND Ground181 VDDP Power192 OSC1I Oscillator input203 OSC2O Oscillator outputMCP2210DS22288A-page 4 2011 Microchip Technology Operating SystemsThe following operating systems are supported.

4 Windows XP/Vista/7 Linux Mac MCP2210 will enumerate as a USB device afterPower-on Reset (POR). The device enumerates as aHuman Interface Device (HID) Interface Device (HID)The MCP2210 enumerates as an HID, so the devicecan be configured and all the other functionalities canbe controlled. A DLL package that facilitates I/O controlthrough a custom interface is supplied by Microchipand is available on the product landing ModuleThe control module is the heart of the MCP2210 . Allother modules are tied together and controlled via thecontrol module . The control module manages the datatransfers between the USB and the SPI, as well ascommand requests generated by the USB hostcontroller, and commands for controlling the function ofthe SPI and INTERFACEThe control module interfaces to the SPI and TO THE DEVICEThe MCP2210 can be accessed for reading and writingvia USB host commands. The device cannot beaccessed and controlled via the SPI ModuleThe MCP2210 SPI module provides the MOSI, MISOand SCK signals to the outside world.

5 The module hasthe ability to control the GP pins (as Chip Select) only ifthese pins are configured for Chip Select module FEATURESThe SPI module has the following configurablefeatures: Bit rates Delays Chip Select pin assignments (up to 9 Chip Select lines)All the above features are available for customizationusing certain USB module POWER-UP CONFIGURATIOND efault parameters: 1 Mbit 4 bytes to transfer per SPI transaction GP1 as Chip Select Protocol ControllerThe USB controller in the MCP2210 is full-speed 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 string descriptors are stored internally in theMCP2210 and they can be changed so when the chipenumerates, the host gets the customer s own productand manufacturer names.

6 They can be customized tothe user s needs by using the Microchip provided con-figuration utility or a custom built application that willsend the proper USB commands for storing the newdescriptors into the EVENTSThe MCP2210 provides support for signaling importantUSB-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 generatedb) A USB Reset signal is detectedc)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 2011 Microchip Technology TransceiverThe MCP2210 has a built-in, USB , full-speedtransceiver internally connected to the USB USB transceiver obtains power from the VUSB pin,which is internally connected to a internalregulator.

7 The best electrical signal quality is obtainedwhen VUSB is locally bypassed with a high-qualityceramic internal regulator draws power from the VDDpin. In certain scenarios, where VDD is lower + internal LDO dropout, the VUSB pin must be tiedto an external regulated This will allow the USBtransceiver to work correctly, while the I/O voltage inthe rest of the system can be lower than As anexample, in a system where the MCP2210 is used andthe I/O required is of , the VDD of the chip will betied to the digital power rail, while the VUSB pinmust be connected to a regulated power PULL-UP RESISTORSThe MCP2210 device has built-in pull-up resistorsdesigned to meet the requirements for full-speed POWER OPTIONSThe following are the main power options for theMCP2210: USB Bus Powered (5V) Self Powered (from to 5V), while the VUSB pin is supplied with (regulated). If the VDD is powered with 5V, then the VUSB will be powered by the internal regulator and the VUSB pin will need only a decoupling Power Supply DetailsMCP2210 offers various options for power supply.

8 Tomeet the required USB signaling levels, MCP2210device incorporates an internal LDO used solely by theUSB transceiver, in order to present the correct D+/Dvoltage 1-1 shows the internal connections of the USBtransceiver LDO in relation with the VDD power supplyrail. The output of the USB transceiver LDO is tied tothe VUSB line. A capacitor connected to the VUSB pin is required if theUSB transceiver LDO provides the supply to 1-1: MCP2210 INTERNAL POWER SUPPLY DETAILSThe provided VDD voltage has a direct influence on thevoltage levels present on the gpio and SPI modulepins (GP8-GP0, MOSI, MISO and SCK). When VDD is5V, all of these pins will have a logical 1 around 5 Vwith the variations specified in Section DC Char-acteristics .For applications that require a logical 1 level,VDD must be connected to a power supply providingthe voltage. In this case, the internal USBtransceiver LDO cannot provide the required It is necessary to also connect the VUSB pin ofthe MCP2210 to the power supply rail.

9 This way,the USB transceiver is powered up directly from power Bus Powered (5V)In Bus Power Only mode, the entire power for theapplication is drawn from the USB (see Figure 1-2).This is effectively the simplest power method for 1-2:BUS POWER ONLY +VDDVUSBD-INOUTVDDVUSBVSSVBUSMCP2210DS22 288A-page 6 2011 Microchip Technology order to meet the inrush current requirements of theUSB specifications, the total effective capacitanceappearing across VBUS and ground must be no morethan 10 F. If it is more than 10 F, some kind of inrushlimiting is required. For more details on Inrush CurrentLimiting, see the current Universal Serial Bus to the USB specification, all USB devicesmust also support a Low-Power Suspend mode. In theUSB Suspend mode, devices must consume no morethan 500 A (or mA for high powered devices thatare remote wake-up capable) from the 5V VBUS line ofthe USB host signals the USB device to enter Suspendmode by stopping all USB traffic to that device for morethan 3 USB bus provides a 5V voltage.

10 However, the USBtransceiver requires for the signaling (on D+ andD- lines). During USB Suspend mode, the D+ or D- pull-up resis-tor must remain active, which will consume some of theallowed suspend current budget (500 mA). The VUSB pin is required to have an external bypasscapacitor. It is recommended that the capacitor be aceramic cap, between and 1-3 shows a circuit where the MCP2210 internalLDO is used to provide to the USB voltage on the VDD affects the voltage levels ontothe GP and SPI module pins (GP8-GP0, MOSI, MISOand SCK). with VDD at 5V, these pins will have a logic 1 of 5V with the variations specified in Section DC Characteristics .FIGURE 1-3:TYPICAL POWER SUPPLY OPTION USING THE 5V PROVIDED BY THE USB Self PoweredTypically, many embedded applications are using lower power supplies. When such an option is avail-able in the target system, MCP2210 can be poweredup (VDD) from the existing power supply rail.


Related search queries