MCP2221 HID

MCP2221/MCP2221A USB Converter Open Source HID Library

This is an open-source library that aims to provide a multi-platform interface solution for interacting with Microchip’s MCP2221/MCP2221A USB-to-UART and I2C/SMBus serial converters. The library supports access to various functions of the converter, including 4 GPIO pins, 3 10-bit ADCs, and 1 5-bit DAC. Unlike Microchip’s proprietary DLL library, this project aims to provide an open-source, cross-platform alternative.

This library also makes use of HIDAPI.

Supported features:

FeatureStatus
ADCSupported
DACSupported
GPIOSupported
Interrupt inputSupported
Clock reference outputSupported
USB Descriptors
(Manufacturer, product, serial, VID, PID)
Supported
I2C/SMBLimited support, WIP
Flash password protectionNot yet implemented
C++ and C# wrappersNot yet implemented

Download from GitHub
Documentation

Bits of info about the MCP2221

  • Doesn’t use a crystal, only requires 1 small capacitor when powered with 3.3V or 2 capacitors when powered with 5V.
  • Available in a hacker friendly DIP package.
  • Has a remote wake function which when used in conjunction with the interrupt input can be used to wakeup the USB host (usually a PC), just