MCP2210
3.4
External Interrupt Pin (GP6) Event Status
The External Interrupt pin event status command is used by the USB host to query the external interrupt events recorded
by the MCP2210. In order to have the MCP2210 record the number of external interrupt events, GP6 must be configured
to have its dedicated function active.
3.4.1
GET (VM) THE CURRENT NUMBER OF EVENTS FROM THE INTERRUPT PIN
TABLE 3-56: COMMAND STRUCTURE
Byte
Index
Meaning
0
1
0x12 – Get (VM) the Current Number of Events From the Interrupt Pin
Reset or Not the Event Counter
• 0x00 – reads, then resets the event counter
• Any other value – the event counter is read, however, the counter is not reset
0x00 - Reserved
2-63
3.4.1.1
Responses
TABLE 3-57: RESPONSE 1 STRUCTURE
Byte
Index
Meaning
0
0x12 – Get (VM) the Current Number of Events from the Interrupt Pin – echos back the given
command code
1
0x00 – Command Completed Successfully
Don’t Care
2
3
4
Don’t Care
Interrupt Event Counter – 16-bit value (low byte)
Interrupt Event Counter – 16-bit value (high byte)
Don’t Care
5
63-63
FIGURE 3-22:
GET (VM) THE CURRENT NUMBER OF EVENTS FROM THE INTERRUPT PIN
LOGIC FLOW
Get External
Interrupt Pin Events
Counter
Response 1
External Interrupt
Pin Event Counter
Value Retrieved
2011 Microchip Technology Inc.
DS22288A-page 53