CY7C64013 CYPRESS [Cypress Semiconductor], CY7C64013 Datasheet - Page 32

no-image

CY7C64013

Manufacturer Part Number
CY7C64013
Description
Full-Speed USB (12 Mbps) Function
Manufacturer
CYPRESS [Cypress Semiconductor]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
CY7C64013-PC
Manufacturer:
CY
Quantity:
101
Part Number:
CY7C64013-PC
Manufacturer:
CY
Quantity:
116
Part Number:
CY7C64013-PXC
Quantity:
17
Part Number:
CY7C64013-SC
Manufacturer:
CY
Quantity:
15 625
Part Number:
CY7C64013A-PXC
Manufacturer:
CY
Quantity:
548
Part Number:
CY7C64013C-SXC
Manufacturer:
CYPRESS/赛普拉斯
Quantity:
20 000
18.0
USB Device Address A includes up to five endpoints: EPA0, EPA1, EPA2, EPA3, and EPA4. Endpoint (EPA0) allows the USB
host to recognize, set-up, and control the device. In particular, EPA0 is used to receive and transmit control (including set-up)
packets.
18.1
The USB Controller provides one USB Device Address with five endpoints. The USB Device Address Register contents are
cleared during a reset, setting the USB device address to zero and marking this address as disabled. Figure 18-1 shows the
format of the USB Address Registers.
Bit 7 (Device Address Enable) in the USB Device Address Register must be set by firmware before the SIE can respond to USB
traffic to this address. The Device Addresses in bits [6:0] are set by firmware during the USB enumeration process to the non-zero
address assigned by the USB host.
18.2
The CY7C64x13 controller supports one USB device address and five endpoints for communication with the host. The configu-
ration of these endpoints, and associated FIFOs, is controlled by bits [7,6] of the USB Status and Control Register (0x1F). Bit 7
controls the size of the endpoints and bit 6 controls the number of endpoints. These configuration options are detailed in Table
18-1. The “unused” FIFO areas in the following table can be used by the firmware as additional user RAM space.
Table 18-1. Memory Allocation for Endpoints
When the SIE writes data to a FIFO, the internal data bus is driven by the SIE; not the CPU. This causes a short delay in the
CPU operation. The delay is three clock cycles per byte. For example, an 8-byte data write by the SIE to the FIFO generates a
delay of 2 s (3 cycles/byte * 83.33 ns/cycle * 8 bytes).
18.3
All USB devices are required to have a Control Endpoint 0 (EPA0) that is used to initialize and control each USB address. Endpoint
0 provides access to the device configuration information and allows generic USB status and control accesses. Endpoint 0 is
bidirectional to both receive and transmit data. The other endpoints are unidirectional, but selectable by the user as IN or OUT
endpoints.
The endpoint mode register is cleared during reset. The endpoint zero EPA0 mode register uses the format shown in Figure 18-2.
Document #: 38-08001 Rev. **
I/O status
Endpoint 0
Received
[7,6]
Address
SETUP
Device
Enable
7
7
USB Device Address
USB Device Endpoints
USB Control Endpoint Mode Register
USB Serial Interface Engine Operation
Label
unused
unused
EPA2
EPA1
EPA0
Endpoint 0
Received
Address
Device
Bit 6
Address
IN
6
6
0xD8
Start
0xE0
0xE8
0xF0
0xF8
[0,0]
Figure 18-2. USB Device Endpoint Zero Mode Register 0x12 (read/write)
Figure 18-1. USB Device Address Register 0x10 (read/write)
Endpoint 0
Size
Received
Address
Device
8
8
8
8
8
Bit 5
OUT
5
5
Label
unused
unused
EPA0
EPA1
EPA2
Address
Address
Device
0xC0
Start
0xA8
0xB0
0xB8
0xE0
[1,0]
Bit 4
ACK
4
4
Size
32
32
8
8
8
Address
Device
Mode
Bit 3
Bit 3
3
3
Label
EPA4
EPA3
EPA2
EPA1
EPA0
Address
Start
0xD8
0xE0
0xE8
0xF0
0xF8
[0,1]
Address
Device
Mode
Bit 2
Bit 2
2
2
Size
8
8
8
8
8
Address
Label
Device
EPA4
EPA3
EPA0
EPA1
EPA2
Mode
Bit 1
Bit 1
1
1
Address
CY7C64013
CY7C64113
Start
0xB0
0xA8
0xB8
0xC0
0xE0
[1,1]
Page 32 of 48
Address
Device
Mode
Bit 0
Bit 0
0
0
Size
32
32
8
8
8

Related parts for CY7C64013