4.1 UART Interface Commands and Their Responses

The MCP2222 supports CDC class commands for UART operations and UART configuration.

  • Control commands are sent through, and the responses are read through Endpoint 0x00
  • Notification interrupts are received through Endpoint 0x01 (IN)
  • Data is transmitted through Endpoint 0x02 (OUT)
  • Data is received through Endpoint 0x82 (IN)
Table 4-1. Supported CDC Class Interface Commands for UART Functions
Command/InterruptEffect
SET_LINE_CODINGConfigures the UART baud rate, parity stop bits and data width
GET_LINE_CODINGReads the current UART configuration, including baud rate, parity stop bits, and data width
SET_CONTROL_LINE_STATEControls the state of the UART peripheral and the RTS line
SERIAL_STATESends the error state (parity error and framing error) to the Host