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)
| Command/Interrupt | Effect |
|---|---|
SET_LINE_CODING | Configures the UART baud rate, parity stop bits and data width |
GET_LINE_CODING | Reads the current UART configuration, including baud rate, parity stop bits, and data width |
SET_CONTROL_LINE_STATE | Controls the state of the UART peripheral and the RTS line |
SERIAL_STATE | Sends the error state (parity error and framing error) to the Host |
