User`s guide

CY7C63722C
CY7C63723C
CY7C63743C
FOR
FOR
Document #: 38-08022 Rev. *C Page 32 of 49
Bit [7:0]: P1[7:0] Interrupt Polarity
1 = Rising GPIO edge
0 = Falling GPIO edge
22.0 USB Mode Tables
The following tables give details on mode setting for the USB
Serial Interface Engine (SIE) for both the control endpoint
(EP0) and non-control endpoints (EP1 and EP2).
Note:
3. STALL bit is the bit 7 of the USB Non-Control Device Endpoint Mode registers. Refer to Section 14.3 for more explanation.
Figure 21-8. GPIO Interrupt Diagram
Port Bit Interrupt
OR Gate
GPIO Interrupt
Flip Flop
CLR
GPIO
Pin
1 = Enable
0 = Disable
Port Bit Interrupt
Enable Register
1 = Enable
0 = Disable
Interrupt
Priority
Encoder
IRQout
Interrupt
Vector
D
Q
M
U
X
1
(1 input per
GPIO pin)
Global
GPIO Interrupt
Enable
(Bit 6, Register 0x20)
IRA
Polarity Register
Table 22-1. USB Register Mode Encoding for Control and Non-Control Endpoints
Mode Encoding SETUP IN OUT Comments
Disable 0000 Ignore Ignore Ignore Ignore all USB traffic to this endpoint
NAK IN/OUT 0001 Accept NAK NAK On Control endpoint, after successfully sending an ACK
handshake to a SETUP packet, the SIE forces the
endpoint mode (from modes other than 0000) to 0001.
The mode is also changed by the SIE to 0001 from mode
1011 on issuance of ACK handshake to an OUT.
Status OUT Only 0010 Accept STALL Check For Control endpoints
STALL IN/OUT 0011 Accept STALL STALL For Control endpoints
Ignore IN/OUT 0100 Accept Ignore Ignore For Control endpoints
Reserved 0101 Ignore Ignore Always Reserved
Status IN Only 0110 Accept TX 0 Byte STALL For Control Endpoints
Reserved 0111 Ignore TX Count Ignore Reserved
NAK OUT 1000 Ignore Ignore NAK In mode 1001, after sending an ACK handshake to an
OUT, the SIE changes the mode to 1000
ACK OUT(
STALL
[3]
=0)
ACK OUT(STALL
[3]
=1)
1001
1001
Ignore
Ignore
Ignore
Ignore
ACK
STALL
This mode is changed by the SIE to mode 1000 on
issuance of ACK handshake to an OUT
NAK OUT - Status IN 1010 Accept TX 0 Byte NAK
ACK OUT - NAK IN 1011 Accept NAK ACK This mode is changed by the SIE to mode 0001 on
issuance of ACK handshake to an OUT
NAK IN 1100 Ignore NAK Ignore An ACK from mode 1101 changes the mode to 1100
ACK IN
(STALL
[3]
=0)
ACK IN(STALL
[3]
=1)
1101
1101
Ignore
Ignore
TX Count
STALL
Ignore
Ignore
This mode is changed by the SIE to mode 1100 on
issuance of ACK handshake to an IN
NAK IN - Status OUT 1110 Accept NAK Check An ACK from mode 1111 changes the mode to 1110
ACK IN - Status OUT 1111 Accept TX Count Check This mode is changed by the SIE to mode 1110 on
issuance of ACK handshake to an IN