MCP2221 USB 2.0 to I2C/UART Protocol Converter with GPIO Features: I2C/SMBus Universal Serial Bus (USB) • The Device runs as an I2C Master. The Data to Write/Read on the I2C Bus is conveyed by the USB Interface.
MCP2221 Package Types MCP2221 4 x 4 QFN* 3 12 D- RST 4 11 VUSB URX 5 UTX GP2 1 GP1 2 10 SCL RST 3 6 9 SDA URX 4 7 8 GP3 VSS GP1 GP0 16 15 14 13 12 D+ 11 D- EP 17 10 VUSB 9 SCL 5 6 7 8 SDA 13 D+ NC 2 GP3 GP0 NC 14 VSS GP2 1 UTX VDD VDD MCP2221 PDIP/SOIC/TSSOP * Includes Exposed Thermal Pad (EP); see Table 1-1.
MCP2221 1.0 FUNCTIONAL DESCRIPTION The MCP2221 is a USB-to-UART serial converter that enables USB connectivity in applications that have UART and/or I2C interfaces. The device reduces external components by integrating the USB termination resistors and the oscillator needed for USB operation. TABLE 1-1: See Table 1-1 and Section 1.7 “Pin Mux Module” for details about the pin functions.
MCP2221 1.1 Supported Operating Systems The following operating systems are supported: • Windows – XP (SP3)/Vista/7/8 and 8.1 • Linux® – any distribution with support for CDC and HID classes • Mac OS® – all versions, beginning with 10.7 1.1.1 ENUMERATION The MCP2221 enumerates as a composite USB device after Power-on Reset (POR). The device enumerates as both a Human Interface Device (HID) for I2C, GPIO control, and as CDC for the USB-UART converter. 1.1.1.
MCP2221 1.4 Device Configuration FIGURE 1-1: The MCP2221 keeps all the essential device configuration settings stored in Flash memory. Power-up/Reset Device configuration settings affect the way the MCP2221 behaves at runtime. Copy FLASH Chip and GP settings to SRAM The settings are stored into the Flash memory on the device. Some of the settings are also copied into SRAM at Power-up/Reset.
MCP2221 1.4.2 CHIP SETTINGS MAP The Chip Settings area resides in Flash memory and is copied into SRAM at runtime. Not all of the device’s settings can be altered at runtime. All the fields in the Flash settings can be altered by the user.
MCP2221 REGISTER 1-1: CHIPSETTING0 REGISTER R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 CDCSNEN LEDURXINST LEDUTXINST LEDI2CINS T SSPNDINS T USBCFGINST R/W-0 R/W-0 CHIPPROT1 CHIPPROT0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared bit 7 CDCSNEN: USB CDC Serial Number Enable 1 = USB CDC Serial Number is enumerated 0 = No USB CDC Serial Number enumeration (factory default) bit 6 LEDURXINST: LE
MCP2221 REGISTER 1-2: CHIPSETTING1 REGISTER R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 — — — CLKDC1 CLKDC0 CLKDIV2 CLKDIV1 CLKDIV0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown bit 7-5 Reserved: Set to ‘0’ bit 4-3 CLKDC<1:0>: Clock-Out Duty-Cycle 11 = Duty cycle 75% (75% of 1 clock period is logic ‘1’ and 25% of 1 clock period is logic ‘0’) 10 = Duty cycle
MCP2221 REGISTER 1-4: CHIPSETTING3 REGISTER R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 — INTDETFEEN INTDETREEN ADCVRM1 ADCVRM0 ADCREF — — bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared bit 7 Reserved: Reserved – set to ‘0’ bit 6 INTDETFEEN: Interrupt Falling Edge Detect Enable 1 = Interrupt detector will trigger when a falling edge is detected 0 = Falling edges will not trigger
MCP2221 REGISTER 1-7: USBPIDL REGISTER R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 USBPIDL7 USBPIDL6 USBPIDL5 USBPIDL4 USBPIDL3 USBPIDL2 USBPIDL1 USBPIDL0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared bit 7-0 x = Bit is unknown USBPIDL<7:0>: USB PID Lower Byte (factory default: 0xDD(hex)) REGISTER 1-8: USBPIDH REGISTER R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 U
MCP2221 REGISTER 1-10: USBREQCRT REGISTER R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 USBREQCRT7 USBREQCRT6 USBREQCRT5 USBREQCRT4 USBREQCRT3 USBREQCRT2 USBREQCRT1 USBREQCRT0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared bit 7-0 x = Bit is unknown USBREQCRT<7:0>: USB Bus-Powered Required Current Amount (in units of 2 mA) Factory default is 50 (decimal); the USB enumeration interp
MCP2221 1.4.3 GP SETTINGS MAP The GP Settings area resides in Flash memory and is copied into SRAM at runtime. The user can alter both the Flash and the SRAM GP settings. Any modification in the SRAM copy of the GP settings will has an immediate effect. The GP pins designation changes according to the new content of the SRAM settings. The Flash variant of the settings will affect the Power-up behavior of the GP pins.
MCP2221 REGISTER 1-13: GPSETTING1 REGISTER R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 — — — GPIOOUTVAL GPIODIR GPDES2 GPDES1 GPDES0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown bit 7-5 Reserved: Set to ‘0’ bit 4 GPIOOUTVAL: GPIO Output Value (valid only when the GP1 is set for GPIO output operation) 1 = Default output value is logic ‘1’ 0 = Default output
MCP2221 REGISTER 1-14: GPSETTING2 REGISTER R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 — — — GPIOOUTVAL GPIODIR GPDES2 GPDES1 GPDES0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown bit 7-5 Reserved: Set to ‘0’ bit 4 GPIOOUTVAL: GPIO Output Value (valid only when the GP2 is set for GPIO output operation) 1 = Default output value is logic ‘1’ 0 = Default output
MCP2221 REGISTER 1-15: GPSETTING3 REGISTER R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 — — — GPIOOUTVAL GPIODIR GPDES2 GPDES1 GPDES0 bit 7 bit 0 Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ -n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown bit 7-5 Reserved: Set to ‘0’ bit 4 GPIOOUTVAL: GPIO Output Value (valid only when the GP3 is set for GPIO output operation) 1 = Default output value is logic ‘1’ 0 = Default output
MCP2221 1.5 USB Module (HID, CDC and Transceiver modules) The USB HID and CDC modules in the MCP2221 are full-speed USB 2.0 compliant.
MCP2221 The provided VDD voltage has a direct influence on the voltage levels present on the GPIO and UART TX/RX pins. When VDD is 5V, all of these pins will have a logical ‘1’ around 5V with the variations specified in Section 4.1 “DC Characteristics”. For applications that require a 3.3V logical ‘1’ level, VDD 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.
MCP2221 1.6.2.3 3.3V Self Powered Typically, many embedded applications are using 3.3V power supplies. When such option is available in the target system, MCP2221 can be powered up from the existing 3.3V power supply rail. The typical connections for MCP2221 are shown in Figure 1-5. In this example, MCP2221 has both VDD and VUSB lines tied to the 3.3V rail. These tied connections disable the internal USB transceiver LDO of the MCP2221 to regulate the power supply on VUSB pin.
MCP2221 1.7.1.4 LED_URX 1.7.1.6 LED_I2C The ‘RX’ in this pin name refers to the UART of the MCP2221. The LED_URX pin is an indicator of UART RX characters being received. The ‘I2C’ in the pin name refers to the I2C module in the MCP2221. The LED_I2C pin is an indicator of I2C activity. This pin will pulse low or high (depending on the chip configuration settings, see CHIPSETTING0 register for details) for a period of time (a few milliseconds).
MCP2221 1.8 GPIO/ADC/DAC Module 1.8.3 This module communicates with the USB HID submodule through the Bus Matrix Module. It allows the manipulation of GPIOs, retrieving the ADC data and setting the DAC value. 1.8.1 GPIO When the GPs are configured for GPIO operation, those configured GPs can be used as digital inputs or outputs. When working as outputs, the GPs output logic levels (logic 0 or 1). 1.8.1.1 The DAC is 5-bit wide and has a single analog output and it uses its own VRM module.
MCP2221 1.9 CLKR 1.13 I2C™ Master Module When GP1 is configured for clock output operation, the GP1 pin will act as a digital output, providing a clock signal derived from the device’s internal clock. The clock’s nominal frequency is 12 MHz ±0.25%. Other clock values and duty cycles are possible by setting different values that are associated with this mode of operation. The I2C Master module is responsible for the I2C traffic generation.
MCP2221 2.0 USB ENUMERATION PROCESS The MCP2221 implements the CDC class to support the USB-to-UART protocol converter functionality. Using USB-to-UART (CDC class) adapters with personal computers running the Windows operating system (OS) requires some consideration because of the way Windows OS responds to their connection. When a USB-to-UART (CDC class) adapter is connected to the USB port of the PC, Windows searches for a driver.
MCP2221 3.0 USB HID COMMUNICATION Except for the USB CDC and UART modules, all the other modules in the MCP2221 use USB HID protocol for communication. The USB HID protocol uses 64-byte reports. A typical command exchange starts with a 64-byte packet that is written by the USB Host (i.e., the PC). Afterward, the USB Host reads the response from the device as a 64-byte packet. 3.1 3.1.1 USB HID Commands/Responses STATUS/SET PARAMETERS This command offers many options for this device.
MCP2221 3.1.1.1 Responses TABLE 3-2: Byte Index RESPONSE 1 STRUCTURE Function Description 0 0x10 1 2 Value Cancel transfer 3 4 0x00 Command completed successfully. No special operation (i.e., Cancel current I2C/SMBus transfer) 0x10 The current I2C/SMBus transfer was marked for cancellation.
MCP2221 TABLE 3-2: Byte Index RESPONSE 1 STRUCTURE (CONTINUED) Function Description Value 23 SDA line value – as read from the pin 24 Interrupt edge detector state 25 I2 0, 1 or 2 26-45 Don’t care Any value C Read pending value 46 MCP2221 Hardware Revision Major (‘A’) 47 MCP2221 Hardware Revision Minor (‘6’) 48 MCP2221 Firmware Revision Major (‘1’) 49 MCP2221 Firmware Revision Minor (‘1’) 0 or 1 50-55 ADC Data (16-bit) values. 56-63 Don’t care 2014 Microchip Technology Inc.
MCP2221 3.1.2 READ FLASH DATA This command is used to read various important data structures and strings that are stored in Flash memory on the MCP2221. TABLE 3-3: Byte Index COMMAND STRUCTURE Function Description Value 0 1 2-63 Read Flash Data – command code 0x00 Read Chip Settings – it will read the MCP2221 NVRAM settings. 0x01 Read GP Settings – it will read the MCP2221.
MCP2221 TABLE 3-5: Byte Index RESPONSE STRUCTURE – READ CHIP SETTINGS SUB-COMMAND Function Description 0 1 2 Don’t care 4 Bit 7: CDC Serial Number Enumeration Enable 0xB0 Read Flash Data – command code echo 0x00 Command completed successfully 1 The USB serial number will be used during the USB enumeration of the CDC interface. 0 No serial number descriptor will be presented during the USB enumeration.
MCP2221 TABLE 3-5: Byte Index 7 RESPONSE STRUCTURE – READ CHIP SETTINGS SUB-COMMAND (CONTINUED) Function Description Bit 7 Value Effect Don’t care Bit 6: Interrupt detection – negative edge If set, the interrupt detection flag will be set when a negative edge occurs. Bit 5: Interrupt detection – positive edge If set, the interrupt detection flag will be set when a positive edge occurs. 11 Reference voltage is 4.096V (only if VDD is above this voltage) 10 Reference voltage is 2.
MCP2221 TABLE 3-6: Byte Index RESPONSE STRUCTURE – READ GP SETTINGS SUB-COMMAND Function Description Value Effect 0 0xB0 Read Flash Data – command code echo 1 0x00 Command completed successfully 2 Structure length 3 4 Don’t care GP0 Power-up Settings Bit 7-5: Don’t care Bit 4: GPIO Output value Bit 3: GPIO Direction (Input/Output) – Works only when GP0 is set for GPIO operation Bit 2-0: GP0 Designation 5 When GP0 is set as an output GPIO, this value will be present at the GP0 pin at Power-u
MCP2221 TABLE 3-6: Byte Index 7 RESPONSE STRUCTURE – READ GP SETTINGS SUB-COMMAND (CONTINUED) Function Description Value Effect GP3 Power-up Settings Bits7-5: Don’t care Bit 4: GPIO Output value When GP3 is set as an output GPIO, this value will be present at the GP3 pin at Power-up/Reset. Bit 3: GPIO Direction (Input/Output).
MCP2221 TABLE 3-9: RESPONSE STRUCTURE – READ USB SERIAL NUMBER DESCRIPTOR STRING SUB-COMMAND Byte Index Value 0 0xB0 Read Flash Data – command code echo 1 0x00 Command completed successfully 2 (2) 3 4 + 2 x Unicode_char_number + 0 0x03 (1) The value at this index must always be 0x03 Higher byte of the 16-bit Unicode character (4 + 2 x Unicode_char_number + 2) - 63 (1) Don’t care. Only if the USB string descriptor is less than 60-bytes long in total.
MCP2221 3.1.3 WRITE FLASH DATA This command is used to write various important data structures and strings into the Flash memory of the device. TABLE 3-11: Byte Index COMMAND STRUCTURE Function Description 0 1 2-63 Write Flash Data Sub-code.
MCP2221 TABLE 3-12: Byte Index SUB-COMMAND STRUCTURE – WRITE CHIP SETTINGS SUB-COMMAND Function Description Value Effect 0 0xB1 Write Flash Data – command code. 1 0x00 Write Chip Settings – it will write the MCP2221 NVRAM device settings. 2 Bit 7: CDC Serial Number Enumeration Enable. The USB serial number will be used during the USB enumeration of the CDC interface. 0 No serial number descriptor will be presented during the USB enumeration.
MCP2221 TABLE 3-12: Byte Index 5 SUB-COMMAND STRUCTURE – WRITE CHIP SETTINGS SUB-COMMAND (CONTINUED) Function Description Bit 7 Value Effect Don’t care Bit 6: Interrupt detection – negative edge If set, the interrupt detection flag will be set when a negative edge occurs. Bit 5: Interrupt detection – positive edge If set, the interrupt detection flag will be set when a positive edge occurs. Bit 4-3: ADC Reference Voltage Bit 2: ADC Reference Option 11 Reference voltage is 4.
MCP2221 TABLE 3-13: Byte Index SUB-COMMAND STRUCTURE – WRITE GP SETTINGS SUB-COMMAND Function Description Value Effect 0 0xB1 Write Flash Data – command code 1 0x00 Write Chip Settings – it will write the MCP2221 NVRAM device settings 2 GP0 Power-up Settings Bit 7-5: Don’t care Bit 4: GPIO Output value Bit 3: GPIO Direction (Input/Output). Works only when GP0 is set for GPIO operation.
MCP2221 TABLE 3-13: Byte Index 5 SUB-COMMAND STRUCTURE – WRITE GP SETTINGS SUB-COMMAND (CONTINUED) Function Description Value Effect GP3 Power-up Settings Bit 7-5: Don’t care Bit 4: GPIO Output value When GP3 is set as an output GPIO, this value will be present at the GP2 pin at Power-up/Reset. Bit 3: GPIO Direction (Input/Output). Works only when GP3 is set for GPIO operation.
MCP2221 TABLE 3-16: SUB-COMMAND STRUCTURE – WRITE USB SERIAL NUMBER DESCRIPTOR STRING SUB-COMMAND Byte Index Value 0 0xB1 Write Flash Data – command code 1 0x04 Write USB Serial Number Descriptor String – writes the USB Serial Number String Descriptor used during the USB enumeration 2 (2) Number of bytes + 2 in the provided USB Serial Number Descriptor String. The actual String starts at Byte Index 4 3 0x03 Effect The value at this index must always be 0x03.
MCP2221 3.1.4 SEND FLASH ACCESS PASSWORD This command is used to send a user-supplied password that will be compared with the one stored in the device’s Flash when Flash updates (Chip/GP configuration, USB strings) are required and the Flash data is password-protected. In the case where no protection mechanism is in place, or the Flash data has been permanently locked, this command has no meaning.
MCP2221 3.1.5 I2C™ WRITE DATA This command is used to write user-given data to the I2C Slave device (whose address and speed are specified by the STATUS/SET Parameters command). The command will have the following effects: • The I2C engine will send the “START” condition. • The selected I2C slave address is sent next and the I2C engine will wait for the slave to send an acknowledge bit. TABLE 3-20: • The user data follows next and the I2C engine awaits for the acknowledge bit from the slave.
MCP2221 3.1.6 I2C™ WRITE DATA REPEATED-START This command is used to write user-given data to the I2C Slave device (whose address and speed are specified by the STATUS/SET Parameters command). The command will have the following effects: • The I2C engine will send the “Repeated-START” condition. • The selected I2C slave address is sent next, and the I2C engine will wait for the slave to send an acknowledge bit.
MCP2221 3.1.7 I2C™ WRITE DATA NO STOP This command is used to write user-given data to the I2C Slave device (whose address and speed are specified by the STATUS/SET Parameters command). The command will have the following effects: • The I2C engine will send the “START” condition. • The selected I2C slave address is sent next, and the I2C engine will wait for the slave to send an acknowledge bit. TABLE 3-24: • The user data follows next, and the I2C engine waits for the acknowledge bit from the slave.
MCP2221 3.1.8 I2C™ READ DATA This command is used to read user-given data to the I2C Slave device (whose address and speed are specified by the STATUS/SET Parameters command). The command will have the following effects: • The I2C engine will send the “START” condition. • The selected I2C slave address is sent next, and the I2C engine will wait for the slave to send an acknowledge bit. TABLE 3-26: • The user data is read next, and the I2C engine sends the acknowledge bit to the slave.
MCP2221 3.1.9 I2C™ READ DATA REPEATED-START This command is used to read user-given data to the I2C Slave device (its address and speed are specified by the STATUS/SET Parameters command). The command will have the following effect: • The I2C engine will send the “Repeated-START” condition. • The selected I2C slave address is sent next, and the I2C engine will wait for the slave to send an acknowledge bit.
MCP2221 3.1.10 I2C READ DATA – GET I2C DATA This command is used to read back the data from the I2C Slave device (its address and speed are specified by the STATUS/SET Parameters command). TABLE 3-30: COMMAND STRUCTURE Byte Index Value 0 0x40 I2C Read Data – Get I2C Data – command code 1 0x00 Requested I2C transfer length – 16-bit value – low byte 2 0x03 Requested I2C transfer length – 16-bit value – high byte 3-63 Don’t care 3.1.10.
MCP2221 3.1.11 SET GPIO OUTPUT VALUES This command is used to change the GPIO output value for those GP pins assigned for GPIO operation (GPIO outputs). TABLE 3-32: Byte Index COMMAND STRUCTURE Function Description Value 0 0x50 1 Don’t care 2 3 Alter GP0 output (enable/disable) GP0 output value 0x00 Effect Set GPIO Output Values – command code. Do not modify GP0 output (if GP0 is set as GPIO output).
MCP2221 TABLE 3-32: Byte Index 15 COMMAND STRUCTURE (CONTINUED) Function Description Value Effect GP3 output value 0x00 GP3 (if set up for GPIO output operation) will take a logical value of ‘0’. Any other GP3 (if set up for GPIO output operation) will take a logical value of ‘1’. value 16 17 Alter GP3 pin direction (enable/disable) GP3 pin direction (input or output) 18-63 Reserved 3.1.11.1 Function Description 1 3 0x00 Set GP3 GPIO as output.
MCP2221 TABLE 3-33: RESPONSE 1 STRUCTURE (CONTINUED) Byte Index Function Description Value 11 GP2 output value status 0xEE Effect If GP2 is not set for GPIO operation Any other If GP2 is already set for GPIO operation, the value will be copied from value the same byte index in the command structure.
MCP2221 3.1.12 GET GPIO VALUES This command is used to retrieve the GPIO direction and pin value for those GP pins assigned for GPIO operation (GPIO inputs or outputs). TABLE 3-34: Byte Index Value 0 0x51 1-63 Don’t care 3.1.12.
MCP2221 3.1.13 SET SRAM SETTINGS This command is used to alter various runtime chipsettings. The altered settings reside in SRAM memory and they won’t affect the chip’s Power-up/Reset default settings. These altered settings will be active till the next chip Power-up/Reset.
MCP2221 TABLE 3-36: Byte Index 5 COMMAND STRUCTURE (CONTINUED) Function Description Bit 6-3 Bit 2-1: These bits are used to change the DAC VRM voltage Bit 0: This bit is used to change the DAC reference voltage 1 Bits 2-0 will be used for ADC reference voltage selection 0 ADC reference will remain unaltered Don’t care 11 VRM voltage is 4.096V (only if VDD is higher than this value) 10 VRM voltage is 2.048V 01 VRM voltage is 1.
MCP2221 TABLE 3-36: Byte Index 9 COMMAND STRUCTURE (CONTINUED) Function Description Value GP1 settings Bit 7-5 Don’t care Bit 4: GPIO Output value Bit 3: GPIO Direction (Input/Output). Works only when GP1 is set for GPIO operation Bit 2-0: GP0 Designation 10 When GP1 is set as an output GPIO, this value will be present at the GP1 pin.
MCP2221 3.1.13.1 Responses TABLE 3-37: RESPONSE 1 STRUCTURE Byte Index Value 0 0x60 Set SRAM Settings – command code echo 1 0x00 Command completed successfully 2-63 Don’t care Effect DS20005292A-page 52 2014 Microchip Technology Inc.
MCP2221 3.1.14 GET SRAM SETTINGS This command is used to retrieve the runtime Chip and GP settings. TABLE 3-38: COMMAND STRUCTURE Byte Index Value 0 0x61 Get SRAM Settings – command code echo 1-63 0x00 Command completed successfully 3.1.14.1 Effect Responses TABLE 3-39: Byte Index RESPONSE 1 STRUCTURE Function Description Value Effect 0 0x61 Get SRAM Settings – command code echo 1 0x00 Command completed successfully 2 Length in bytes of the SRAM Chip-settings area.
MCP2221 TABLE 3-39: Byte Index 6 RESPONSE 1 STRUCTURE (CONTINUED) Function Description Bit 7-6: DAC Reference voltage option Bit 5: DAC reference option Value Effect 11 10 Reference voltage is 2.048V 01 Reference voltage is 1.024V 00 Reference voltage is off (this is useful for the case in which the DAC uses other reference than VRM DAC; e.g.
MCP2221 TABLE 3-39: Byte Index 22 RESPONSE 1 STRUCTURE (CONTINUED) Function Description Value GP0 settings Bit 7-5 Don’t care Bit 4: GPIO Output value Bit 3: GPIO Direction (Input/Output) Works only when GP0 is set for GPIO operation Bit 2-0: GP0 Designation 23 When the GP0 is set as an output GPIO, this value will be present at the GP0 pin.
MCP2221 TABLE 3-39: Byte Index 25 RESPONSE 1 STRUCTURE (CONTINUED) Function Description Value Effect GP3 settings Bit 7-5 Don’t care Bit 4: GPIO Output value Bit 3: GPIO Direction (Input/Output). Works only when GP3 is set for GPIO operation Bit 2-0: GP3 Designation 26-63 DS20005292A-page 56 When the GP3 is set as an output GPIO, this value will be present at the GP3 pin.
MCP2221 3.1.15 RESET CHIP This command is used to force a Reset of the MCP2221 device. This command is useful when the Flash memory is updated with new data. The MCP2221 would need to be re-enumerated to see the new data. Note: This command is the only command that does not expect a response. TABLE 3-40: Byte Index COMMAND STRUCTURE Value 0 0x70 1 0xAB 2 0xCD 3 0xEF 4-63 0x00 Effect Reset Chip – command code Reserved 2014 Microchip Technology Inc.
MCP2221 NOTES: DS20005292A-page 58 2014 Microchip Technology Inc.
MCP2221 4.0 ELECTRICAL CHARACTERISTICS Absolute Maximum Ratings (†)(1) Ambient temperature under bias............................................................................................................... -40°C to +85°C Storage temperature .............................................................................................................................. -65°C to +150°C Voltage on VDD with respect to VSS ....................................................................................
MCP2221 4.1 DC CHARACTERISTICS DC Characteristics Param. No. D001 Characteristic Operating Conditions (unless otherwise indicated): 3.0V VDD 5.5V at -40C TA +85C (I-Temp) Sym. Min. Typ. Max. Units Supply Voltage VDD 3.0 — 5.5 V Power-on Reset Release Voltage VPOR Power-on Reset Rearm Voltage D003 VDD Rise Rate to Ensure Power-on Reset D004 Supply Current SVDD 0.8 V — — V/ms Design guidance only Not tested — 10 12 mA FOSC = 12 MHz, (330 nF on VUSB) IDD VDD = 5.
MCP2221 FIGURE 4-1: POR AND POR REARM WITH SLOW RISING VDD VDD VPOR VPORR VSS NPOR(1) POR REARM VSS TPOR(3) TVLOW(2) Note 1: 2: 3: TABLE 4-1: USB MODULE SPECIFICATIONS DC Characteristics Param. No. When NPOR is low, the device is held in Reset. TPOR 1 µs typical. TVLOW 2.7 µs typical. Characteristic Operating Conditions (unless otherwise indicated): 3.0V VDD 5.5V at -40C TA +85C (I-Temp) Sym. Min. Typ. Max. Units Conditions Vusb 3.0 — 3.
MCP2221 TABLE 4-2: THERMAL CONSIDERATIONS Standard Operating Conditions (unless otherwise stated) Operating temperature -40C TA +85C (I-Temp) Param. No. Sym. TH01 θJA Thermal Resistance Junction to Ambient TH02 θJC Thermal Resistance Junction to Case TH03 TH04 TH05 TH06 TH07 TJMAX PD Note 1: 2: 3: Characteristic Maximum Junction Temperature Power Dissipation PINTERNAL Internal Power Dissipation PI/O I/O Power Dissipation PDER Derated Power Typ. Units 70 95.3 100 45.7 32 31 24.4 6.
MCP2221 4.2 4.2.1 AC Characteristics TIMING PARAMETER SYMBOLOGY The timing parameter symbols have been created in one of the following formats: 1. TppS2ppS T F Frequency E Error Lowercase letters (pp) and their meanings: pp io Input or Output pin rx Receive bitclk RX/TX BITCLK drt Device Reset Timer Uppercase letters and their meanings: S F Fall H High I Invalid (high-impedance) L Low 4.2.2 2.
MCP2221 4.2.3 TIMING DIAGRAMS AND SPECIFICATIONS TABLE 4-4: RESET, OSCILLATOR START-UP TIMER AND POWER-UP TIMER PARAMETERS Standard Operating Conditions (unless otherwise stated) Operating Temperature -40°C TA +85°C Param No. Sym. 30 TRST 31 32 Characteristic RST Pulse Width (low) TPWRT Power-up timer TOST Oscillator startup time Min. Typ.† Max. Units 2 — — μs 40 65 140 ms — 1024 — TOST Conditions * These parameters are characterized but not tested. † Data in “Typ.
MCP2221 5.0 PACKAGING INFORMATION 5.1 Package Marking Information 14-Lead PDIP (300 mil) Example MCP2221 I/P ^^ e3 1415256 14-Lead SOIC (3.90 mm) Example MCP2221 I/SL 1415256 14-Lead TSSOP (4.4 mm) Example XXXXXXXX YYWW NNN 2221ST 1415 256 16-Lead QFN (4x4x0.9 mm) PIN 1 Legend: XX...
MCP2221 3 % & % ! % 4 " ) ' % 4 $ % % " % %% 255))) & &5 4 N NOTE 1 E1 1 3 2 D E A2 A L A1 c b1 b e eB 6 % & 9 & % 7!&( $ 7+8- 7 7 % ; % % 7: 1 + < < 0 , 0 1 % % 0 < < - , , 0 " " 4 ! " % 4 ! " = "% " " 4
MCP2221 Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging 2014 Microchip Technology Inc.
MCP2221 Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging DS20005292A-page 68 2014 Microchip Technology Inc.
MCP2221 3 % & % ! % 4 " ) ' % 4 $ % % " % %% 255))) & &5 4 2014 Microchip Technology Inc.
MCP2221 Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging DS20005292A-page 70 2014 Microchip Technology Inc.
MCP2221 Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging 2014 Microchip Technology Inc.
MCP2221 Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging DS20005292A-page 72 2014 Microchip Technology Inc.
MCP2221 ! " # $ % & ' ( ( )* "# 3 % & % ! % 4 " ) ' % 4 $ % % " % %% 255))) & &5 4 D2 D EXPOSED PAD e E2 E 2 2 1 1 b TOP VIEW K N N NOTE 1 L BOTTOM VIEW A3 A A1 6 % & 9 & % 7!&( $ 99 - - 7 7 7: ; ? % : 8 % > % " $$ 0 + % % 4 ?0 1 + , -3 : = "% -
MCP2221 Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging DS20005292A-page 74 2014 Microchip Technology Inc.
MCP2221 APPENDIX A: REVISION HISTORY Revision A (May 2014) Original Release of this Document. 2014 Microchip Technology Inc.
MCP2221 NOTES: DS20005292A-page 76 2014 Microchip Technology Inc.
MCP2221 PRODUCT IDENTIFICATION SYSTEM To order or obtain information, e.g., on pricing or delivery, contact your local Microchip sales office. PART NO. Device [X](1) X /XX Examples: Tape and Reel Temperature Package Option Range USB-to-I2C/UART Protocol Converter USB-to-I2C/UART Protocol Converter (Tape and Reel) Device: MCP2221: MCP2221T: Temperature Range: I = Package: ML = Plastic Quad Flat, No Lead Package – 4x4x0.9 mm Body (QFN), 16-Lead = Plastic Dual In Line, 300 mil.
MCP2221 NOTES: DS20005292A-page 78 2014 Microchip Technology Inc.
Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature.
Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.