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:
Feature | Status |
---|---|
ADC | Supported |
DAC | Supported |
GPIO | Supported |
Interrupt input | Supported |
Clock reference output | Supported |
USB Descriptors (Manufacturer, product, serial, VID, PID) | Supported |
I2C/SMB | Limited support, WIP |
Flash password protection | Not yet implemented |
C++ and C# wrappers | Not 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