Datasheet

2011 Microchip Technology Inc. DS22288A-page 53
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
3.4.1.1 Responses
FIGURE 3-22: GET (VM) THE CURRENT NUMBER OF EVENTS FROM THE INTERRUPT PIN
LOGIC FLOW
TABLE 3-56: COMMAND STRUCTURE
Byte
Index
Meaning
00x12 Get (VM) the Current Number of Events From the Interrupt Pin
1 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
2-63 0x00 - Reserved
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
2 Don’t Care
3 Don’t Care
4 Interrupt Event Counter – 16-bit value (low byte)
5 Interrupt Event Counter – 16-bit value (high byte)
63-63 Don’t Care
Get External
Interrupt Pin Events
Counter
Response 1
External Interrupt
Pin Event Counter
Value Retrieved