CY7C67200
Document #: 38-08014 Rev. *G
Page 31 of 78
Register Description
The Device n Endpoint n Count register designates the maximum packet size that can be received from the host for OUT transfers
for a single endpoint. This register also designates the packet size to be sent to the host in response to the next IN token for a
single endpoint. The maximum packet length is 1023 bytes in ISO mode. There are a total of eight endpoints for each of the two
ports. All endpoints have the same definition for their Device n Endpoint n Count register.
Count
(Bits [9:0])
The Count field sets the current transaction packet length for a single endpoint.
Reserved
All reserved bits must be written as ‘0’.
Device n Endpoint n Status Register [R/W]
• Device n Endpoint 0 Status Register [Device 1: 0x0206 Device 2: 0x0286]
• Device n Endpoint 1 Status Register [Device 1: 0x0216 Device 2: 0x0296]
• Device n Endpoint 2 Status Register [Device 1: 0x0226 Device 2: 0x02A6]
• Device n Endpoint 3 Status Register [Device 1: 0x0236 Device 2: 0x02B6]
• Device n Endpoint 4 Status Register [Device 1: 0x0246 Device 2: 0x02C6]
• Device n Endpoint 5 Status Register [Device 1: 0x0256 Device 2: 0x02D6]
• Device n Endpoint 6 Status Register [Device 1: 0x0266 Device 2: 0x02E6]
• Device n Endpoint 7 Status Register [Device 1: 0x0276 Device 2: 0x02F6]
Figure 33. Device n Endpoint n Status Register
Register Description
The Device n Endpoint n Status register provides packet status
information for the last transaction received or transmitted.
This register is updated in hardware and does not need to be
cleared by firmware. There are a total of eight endpoints for
each of the two ports. All endpoints have the same definition
for their Device n Endpoint n Status register.
The Device n Endpoint n Status register is a memory-based
register that must be initialized to 0x0000 before USB Device
operations are initiated. After initialization, this register must
not be written to again.
Overflow Flag
(Bit 11)
The Overflow Flag bit indicates that the received data in the
last data transaction exceeded the maximum length specified
in the Device n Endpoint n Count register. The Overflow Flag
should be checked in response to a Length Exception signified
by the Length Exception Flag set to ‘1’.
1:
Overflow condition occurred
0:
Overflow condition did not occur
Underflow Flag
(Bit 10)
The Underflow Flag bit indicates that the received data in the
last data transaction was less then the maximum length
specified in the Device n Endpoint n Count register. The
Underflow Flag should be checked in response to a Length
Exception signified by the Length Exception Flag set to ‘1’.
1:
Underflow condition occurred
0:
Underflow condition did not occur
OUT Exception Flag
(Bit 9)
The OUT Exception Flag bit indicates when the device
received an OUT packet when armed for an IN.
1:
Received OUT when armed for IN
0:
Received IN when armed for IN
Bit #
15
14
13
12
11
10
9
8
Field
Reserved
Overflow
Flag
Underflow
Flag
OUT
Exception Flag
IN
Exception Flag
Read/Write
-
-
-
-
R/W
R/W
R/W
R/W
Default
X
X
X
X
X
X
X
X
Bit #
7
6
5
4
3
2
1
0
Field
Stall
Flag
NAK
Flag
Length
Exception Flag
Setup
Flag
Sequence
Flag
Timeout
Flag
Error
Flag
ACK
Flag
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Default
X
X
X
X
X
X
X
X
[+] Feedback