Example: quiz answers

MCP2200 USB 2.0 to UART Protocol Converter …

2011-2017 Microchip Technology 1 MCP2200 FeaturesUniversal Serial Bus (USB) Supports Full-Speed USB (12 Mb/s) Implements USB Protocol Composite Device: - Communication Device Class (CDC) for Communications and Configuration- Human Interface Device (HID) for I/O control 128-Byte Buffer to Handle Data Throughput at Any uart Baud Rate:- 64-byte transmit- 64-byte receive Fully Configurable VID and PID Assignments and String Descriptors Bus-Powered or Self-Powered USB Compliant: TID 40001150 USB Driver and Software Support Uses Standard Windows Drivers for Virtual Com Port (VCP): Windows XP (SP2 or later), Windows Vista, Windows 7, Windows 8, Windows and Windows 10 Configuration Utility for Initial ConfigurationUniversal Asynchronous Receiver/Transmitter ( uart ) Responds to SET_LINE_CODING Commands to Dynamically Change Baud Rates Supports Baud Rates: 300-1000k Hardware Flow Control uart Signal Polarity OptionGeneral Purpose Input/Output (GPIO) Pins Eight General Purpose I/O pinsEEPROM 256 Bytes of User EEPROMO ther USB Activity LED Outputs (TxLED and RxLED) SSPND Output Pin USBCFG Output Pin (indicates when the enumer-ation is completed) Operating Voltage: Oscillator Input: 12 MHz Electrostatic Discharge (ESD) Protection: >4 kV Human Body Model (HBM) Industrial (I) Operating Temperature: 40 C to +85 CPackage TypesThe device is offered

2011-2017 Microchip Technology Inc. DS20002228D-page 3 MCP2200 1.0 FUNCTIONAL DESCRIPTION The MCP2200 is a USB-to-UART serial converter that enables USB connectivity in applications that have a

Tags:

  Converter, Protocol, Uart, Mcp2200 usb 2, Mcp2200, 0 to uart protocol converter, To uart

Information

Domain:

Source:

Link to this page:

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

Other abuse

Transcription of MCP2200 USB 2.0 to UART Protocol Converter …

1 2011-2017 Microchip Technology 1 MCP2200 FeaturesUniversal Serial Bus (USB) Supports Full-Speed USB (12 Mb/s) Implements USB Protocol Composite Device: - Communication Device Class (CDC) for Communications and Configuration- Human Interface Device (HID) for I/O control 128-Byte Buffer to Handle Data Throughput at Any uart Baud Rate:- 64-byte transmit- 64-byte receive Fully Configurable VID and PID Assignments and String Descriptors Bus-Powered or Self-Powered USB Compliant: TID 40001150 USB Driver and Software Support Uses Standard Windows Drivers for Virtual Com Port (VCP): Windows XP (SP2 or later), Windows Vista, Windows 7, Windows 8, Windows and Windows 10 Configuration Utility for Initial ConfigurationUniversal Asynchronous Receiver/Transmitter ( uart ) Responds to SET_LINE_CODING Commands to Dynamically Change Baud Rates Supports Baud Rates: 300-1000k Hardware Flow Control uart Signal Polarity OptionGeneral Purpose Input/Output (GPIO) Pins Eight General Purpose I/O pinsEEPROM 256 Bytes of User EEPROMO ther USB Activity LED Outputs (TxLED and RxLED) SSPND Output Pin USBCFG Output Pin (indicates when the enumer-ation is completed) Operating Voltage: Oscillator Input: 12 MHz Electrostatic Discharge (ESD) Protection: >4 kV Human Body Model (HBM) Industrial (I) Operating Temperature: 40 C to +85 CPackage TypesThe device is offered in the following packages: 20-lead VQFN (5x5 mm) 20-lead SOIC 20-lead SSOP2 MCP2200 SOIC, SSOPOSC2 OSC1 RST123420191817 VDDVSSD+D-VusbGP7/TxLED516GP0/SSPNDGP6/R xLED615GP5714GP2GP1/USBCFGMCP22005x5 VQFN*GP6/RxLEDGP5 RSTD-VusbGP3GP0/SSPNDTxRTSRxGP1/USBCFGOS C2 OSC1 VDDVSSGP7/TxLEDEP20119181734151413126789 21131211 CTSRxRTSGP48GP39Tx10D+16GP4GP2511 CTS10* Includes Exposed Thermal Pad (EP).

2 See Ta b l e 1 - to uart Protocol Converter with GPIOMCP2200DS20002228D-page 2 2011-2017 Microchip Technology DiagramUART ControllerUSB Protocol ControllerUSB & Control RegistersOSCR esetControlUSB ClockState ClockGPIOBaud GeneratorVSSVUSBRSTVSSVDDRxTxCTSRTSD+D-O SC1 OSC2 USB LEDsTxLEDRxLEDGP0GP1GP2GP3GP4GP5256 Byte EEPROM 2011-2017 Microchip Technology DESCRIPTIONThe MCP2200 is a USB-to- uart serial Converter thatenables USB connectivity in applications that have aUART interface. The device reduces external compo-nents by integrating the USB termination resistors. TheMCP2200 also has 256 bytes of integrated MCP2200 has eight general purpose input/outputpins. Four pins have alternate functions to indicateUSB and communication status. See Ta b l e 1 - 1 andSection GPIO Module for details about the 1-1:PINOUT DESCRIPTIONPinNameVQFNSSOP,SOICPin TypeStandard FunctionAlternate FunctionGP0/SSPND1316I/OGeneral purpose I/OUSB suspend status pin (refer to Section SSPND Pin Function )GP1/USB-CFG1215I/OGeneral purpose I/OUSB configuration status pin (refer to Section USBCFG Pin Function )GP21114I/OGeneral purpose I/OGP369I/OGeneral purpose I/OGP458I/OGeneral purpose I/OGP547I/OGeneral purpose I/OGP6/RxLED36I/OGeneral purpose I/OUSB receive activity LED output (refer to Section RxLED Pin Function (IN Message) )GP7/TxLED25I/OGeneral purpose I/OUSB transmit activity LED output (refer to Section TxLED Pin Function (OUT Message) )

3 CTS1013 IHardware flow control Clear to Send input signalRTS811 OHardware flow control Request to Send output signalRx912 IUSART RX inputTx710 OUSART TX outputRST14 IReset input must be externally biasedVDD181 PPowerVSS1720 PGroundOSC1192 IOscillator inputOSC2203 OOscillator outputD+1619I/OUSB D+D-1518I/OUSB D-Vusb1417 PUSB power pin (internally connected to ). Should be locally bypassed with a high-quality ceramic Exposed Thermal Pad (EP). Do not electrically 4 2011-2017 Microchip Technology Operating SystemsWindows XP (SP2 and later), Windows Vista, Windows7, Windows 8, Windows and Windows 10 operatingsystems are MCP2200 will enumerate as a USB device afterPower-on Reset (POR). The device enumerates asboth a Human Interface Device (HID) for I/O control,and a Virtual Com Port (VCP). Interface Device (HID)The MCP2200 enumerates as an HID, so the devicecan be configured and the I/O can be controlled.

4 A DLLthat facilitates I/O control through a custom interface issupplied by Com Port (VCP)The VCP enumeration implements the USB-to- uart data ModuleThe control module is the heart of the MCP2200 . Allother modules are tied together and controlled via thecontrol module. The control module manages the datatransfers between the USB and the uart , as well asthe command requests generated by the USB hostcontroller and the commands for controlling thefunction of the uart and INTERFACEThe control module interfaces to the uart and TO THE DEVICEThe MCP2200 can be accessed for reading and writingvia USB host commands. The device cannot beaccessed and controlled via the uart InterfaceThe MCP2200 uart interface consists of the Tx andRx data signals and the RTS/CTS flow control uart is configurable for several baud rates. Theavailable baud rates are listed in Ta b l e 1 - CONFIGURATIONThe default uart configuration is 19200, 8, N, 1.

5 Thedefault start-up baud rate can be changed using theMicrochip-supplied configuration PC , a custom configuration tool can becreated using the Microchip-supplied DLL to set thebaud rate as well as other parameters. See Section Configuration for LINE CODINGThe GET_LINE_CODING and SET_LINE_CODING commands are used to read and set the uart parameters while in operation. For example,HyperTerminal sends the SET_LINE_COMMAND whenconnecting to the port. The MCP2200 responds bysetting the baud rate only. The other parameters (databits, parity, stop bits) remain ErrorsThe primary baud rate setting (with the rounding errors)is shown in Ta b l e 1 - 3. If baud rates other than the onesshown in the table are used, the error percentage canbe calculated using Equation 1-1 to find the actualbaud 1-3: uart PRIMARY BAUD RATESTABLE 1-2: uart CONFIGURATIONSP arameterConfigurationPrimary Baud RatesSee Table 1-3 Data Bits8 ParityNStop Bits1 Desired RateActual rate% 2011-2017 Microchip Technology 5 MCP2200 EQUATION 1-1:SOLVING FOR ACTUAL BAUD BAUD RATESC ustom baud rates are configured by sending theSET_LINE_CODING USB command, or by using theDLL.

6 See Section Configuration for FLOW CONTROLH ardware flow control uses the RTS and CTS pins asa handshake between two devices. The RTS pin ofone device is typically connected to the CTS of theother is an active-low output that notifies the otherdevice when it is ready to receive data by driving the pinlow. The MCP2200 trip point for deasserting RTS (high)is 63 characters. This is one character short of bufferfull .CTS is an active-low input that notifies the MCP2200when it is ready to send data. The MCP2200 will checkCTS just before loading and sending uart data. If thepin is asserted during a transfer, the transfer willcontinue. Refer to Figure 1-1:RTS/CTS CONNECTIONS Control DisabledThe buffer pointer does not increment (or reset tozero) if the buffer is full. Therefore, if hardware flowcontrol is not enabled and an overflow occurs ( ,65 unprocessed characters received), the new dataoverwrites the last position in the Protocol ControllerThe USB controller in the MCP2200 is full-speed compliant.

7 Composite device (CDC + HID):- CDC: USB-to- uart communications- HID: I/O control, EEPROM access and initial configuration 128-byte buffer to handle data throughput at any uart baud rate:- 64-byte transmit-64-byte receive Fully configurable VID and PID assignments and descriptors (stored on-chip) Bus-powered or configuration, the supplied PC interface storesthe descriptors in the AND RESUMEThe USB Suspend and Resume signals are supportedfor power management of the MCP2200 . The deviceenters Suspend mode when suspend signaling isdetected on the MCP2200 exits Suspend mode when any of thefollowing events occur:1. Resume signaling is detected or USB Reset signal is device reset TransceiverThe MCP2200 has a built-in, full-speed USB internally connected to the USB USB transceiver obtains power from the VUSBpin,which is internally connected to the regulator. Thebest electrical signal quality is obtained when VUSB islocally bypassed with a high-quality ceramic PULL-UP RESISTORSThe MCP2200 devices have built-in pull-up resistorsdesigned to meet the requirements for full-speed POWER OPTIONSThe following are the main power options for theMCP2200: USB Bus-Powered (5V) Self-PoweredActualRate12 MHzint x -------------------=Where:x12 MHzDesired Baud---------------------------------=RT SRTSCTSCTSI am readyto receiveI ll transmitif okayI am readyto receiveI ll transmitif okayMCUMCP2200 MCP2200DS20002228D-page 6 2011-2017 Microchip Technology Power Supply DetailsMCP2200 offers various options for power supply.

8 Tomeet the required USB signaling levels, the MCP2200device incorporates an internal LDO used solely by theUSB transceiver in order to present the correct D+/D-voltage 1-2 shows the internal connections of the USBtransceiver LDO in relation to the VDD power supplyrail. The output of the USB transceiver LDO is tied tothe VUSB line. A capacitor connected to the VUSB pin isrequired if the USB transceiver LDO provides the to the 1-2: MCP2200 INTERNAL POWER SUPPLY DETAILS The provided VDD voltage has a direct influence on thevoltage levels present on the GPIO pins (Rx/Tx andRTS/CTS). When VDD is 5V, all of these pins will havea logical 1 around 5V with the variations specified inSection DC Characteristics .For applications that require a logical 1 level,VDD must be connected to a power supply voltage. In this case, the internal USB transceiverLDO cannot provide the required of power.

9 It isnecessary to also connect the VUSB pin to the supply rail. This way, the USB transceiver ispowered-up directly from the power Bus-Powered (5V)In Bus Power Only mode, all power for the applicationis drawn from the USB (Figure 1-3). This is effectivelythe simplest power method for the 1-3:BUS POWER ONLYIn 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 not more than 10 F, some kind ofinrush current limiting is required. For more details oninrush current limiting, consider the latest version of the Universal Serial Bus Specification .According 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 the D+and D- lines). During USB Suspend mode, the D+ or D- pull-upresistor must remain active, which will consume someof the allowed suspended current budget (500 mA). The VUSB pin is required to have an externalbypass capacitor. It is recommended that the capacitorbe a ceramic capacitor between F. and 1-4 shows a circuit where MCP2200 s internalLDO is used to provide to the USB voltage on the VDD affects the voltage levels ontothe GPIO pins (Rx/Tx and RTS/CTS). With VDD at 5V,these pins will have a logic 1 of 5V with the variationsspecified in Section DC Characteristics . +VDDVUSBD-INOUTVDDVUSBVSSVBUS 2011-2017 Microchip Technology 7 MCP2200 FIGURE 1-4:TYPICAL POWER SUPPLY OPTION USING THE 5V PROVIDED BY THE USB Self-PoweredTypically, many embedded applications are using supplies. When such an option is available in thetarget system, MCP2200 can be powered up from theexisting power supply rail.