Toxicantidote MCP220 interfacing test

MCP220 interfacing test

July 2018


Example code for controlling the GPIO ports on an MCP2200 device as used in the Denkovi 4 port USB relay board.

Confirmed working on Windows 7, Debian Sid and Ubuntu ARM.


To use this device, first we have to locate it. Once located, it is then claimed from the kernel and we connect to the HID endpoint provided by the device.

Commands sent to this device are 16 bytes long. The first byte is the command, and the 12th and 13th bytes are used for I/O control. The HID interface manual from Microchip describes this in detail.


Hosted on Github