English
Language : 

CY7C68001_09 Datasheet, PDF (22/45 Pages) Cypress Semiconductor – EZ-USB SX2 High Speed USB Interface Device
CY7C68001
9.9 EPxxFLAGS Registers 0x1E–0x1F
The EPxxFLAGS provide an alternate way of checking the status
of the endpoint FIFO flags. If enabled, the SX2 can interrupt the
external master when a flag is asserted, and the external master
can read these two registers to determine the state of the FIFO
flags. If the INFM1 and/or OEP1 bits are set, then the EPxEF and
EPxFF bits are actually empty +1 and full –1.
EP24FLAGS
0x1E
Bit #
7
6
5
4
3
2
1
0
Bit Name
0 EP4PF EP4EF EP4FF 0 EP2PF EP2EF EP2FF
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default
0
0
1
0
0
0
1
0
EP68FLAGS
0x1F
Bit #
7
6
5
4
3
2
1
0
Bit Name
0 EP8PF EP8EF EP8FF 0 EP6PF EP6EF EP6FF
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Default
0
0
1
0
0
0
1
0
9.9.1 EPxPF Bit 6, Bit 2
This bit is the current state of endpoint x’s programmable flag.
9.9.2 EPxEF Bit 5, Bit 1
This bit is the current state of endpoint x’s empty flag. EPxEF =
1 if the endpoint is empty.
9.9.3 EPxFF Bit 4, Bit 0
This bit is the current state of endpoint x’s full flag. EPxFF = 1 if
the endpoint is full.
9.10 INPKTEND/FLUSH Register 0x20
This register allows the external master to duplicate the function
of the PKTEND pin. The register also allows the external master
to selectively flush endpoint FIFO buffers.
INPKTEND/FLUSH
0x20
Bit #
7
6
5
4
3
2
1
0
Bit Name FIFO8 FIFO6 FIFO4 FIFO2 EP3 EP2 EP1 EP0
Read/Write W
W
W
W
W
W
W
W
Default
0
0
0
0
0
0
0
0
Bit [4..7]: FIFOx
These bits allows the external master to selectively flush any or
all of the endpoint FIFOs. By writing the desired endpoint FIFO
bit, SX2 logic flushes the selected FIFO. For example setting bit
7 flushes endpoint 8 FIFO.
Bit [3..0]: EPx
These bits are is used only for IN transfers. By writing the desired
endpoint number (2,4,6 or 8), SX2 logic automatically commits
an IN buffer to the USB host. For example, for committing a
packet through endpoint 6, set the lower nibble to 6: set bits 1
and 2 high.
9.11 USBFRAMEH/L Registers 0x2A, 0x2B
Every millisecond, the USB host sends an SOF token indicating
“Start Of Frame,” along with an 11-bit incrementing frame count.
The SX2 copies the frame count into these registers at every
SOF.
USBFRAMEH
0x2A
Bit #
7
6
5
4
3
2
1
0
Bit Name
0
0
0
0
0 FC10 FC9 FC8
Read/Write R
R
R
R
R
R
R
R
Default
X
X
X
X
X
X
X
x
USBFRAMEL
0x2B
Bit #
7
6
5
4
3
2
1
0
Bit Name FC7 FC6 FC5 FC4 FC3 FC2 FC1 FC0
Read/Write R
R
R
R
R
R
R
R
Default
X
X
X
X
X
X
X
X
One use of the frame count is to respond to the USB
SYNC_FRAME Request. If the SX2 detects a missing or garbled
SOF, the SX2 generates an internal SOF and increments
USBFRAMEL–USBRAMEH.
9.12 MICROFRAME Registers 0x2C
MICROFRAME
0x2C
Bit #
7
6
5
4
3
2
1
0
Bit Name
0
0
0
0
0 MF2 MF1 MF0
Read/Write R
R
R
R
R
R
R
R
Default
X
X
X
X
X
X
X
x
MICROFRAME contains a count 0–7 that indicates which of the
125 microsecond microframes last occurred.
This register is active only when SX2 is operating in high speed
mode (480 Mbits/sec).
9.13 FNADDR Register 0x2D
During the USB enumeration process, the host sends a device
a unique 7-bit address that the SX2 copies into this register.
There is normally no reason for the external master to know its
USB device address because the SX2 automatically responds
only to its assigned address.
FNADDR
0x2D
Bit #
7
6
5
4
3
2
1
0
Bit Name HSGRANT FA6 FA5 FA4 FA3 FA2 FA1 FA0
Read/Write
R
R
R
R
R
R
R
R
Default
0
0
0
0
0
0
0
0
Bit 7: HSGRANT, Set to 1 if the SX2 enumerated at high speed.
Set to 0 if the SX2 enumerated at full speed.
Bit[6..0]: Address set by the host.
Document #: 38-08013 Rev. *J
Page 22 of 45
[+] Feedback