Samsung S5PC110 Manual page 957

Risc microprocessor
Table of Contents

Advertisement

S5PC110_UM
5.8.7.15 Device Endpoint-n Control Register (DIEPCTLn/DOEPCTLn, R/W, Address = 0xEC00_0900+ n*20h,
0xEC00_0B00+ n*20h)
Endpoint_number:1 ≤ n ≤ 15
The application uses this register to control the behavior of each logical endpoint other than endpoint 0.
DIEPCTLn/
Bit
DOEPCTLn
EPEna
[31]
EPDis
[30]
SetD1PID
[29]
SetOddFr
SetD0PID
[28]
Endpoint Enable
Applies to IN and OUT endpoints.
When Scatter/Gather DMA mode is enabled,
For IN endpoints this bit indicates that the descriptor structure
and data buffer with data ready to transmit is setup.
For OUT endpoint it indicates that the descriptor structure and
data buffer to receive data is setup.
When Scatter/Gather DMA mode is enabled—such as for
buffer-pointer based DMA mode:
- For IN endpoints, this bit indicates that data is ready to be
transmitted on the endpoint.
- For OUT endpoints, this bit indicates that the application has
allocated the memory to start receiving data from the USB.
- The core clears this bit before setting any of the following
interrupts on this endpoint:
SETUP Phase Done
Endpoint Disabled
Transfer Completed
Note: For control endpoints in DMA mode, this bit must be set to
be able to transfer SETUP data packets in memory.
Endpoint Disable
Applies to IN and OUT endpoints. The application sets this bit to
stop transmitting/receiving data on an endpoint, even before the
transfer for that endpoint is complete. The application must wait
for the Endpoint Disabled interrupt before treating the endpoint as
disabled. The core clears this bit before setting the Endpoint
Disabled interrupt. The application must set this bit only if
Endpoint Enable is already set for this endpoint.
Set DATA1 PID
Applies to interrupt/bulk IN and OUT endpoints only. Writing to
this field sets the Endpoint Data PID (DPID) field in this register to
DATA1. This field is applicable both for Scatter/Gather DMA
mode and non- Scatter/Gather DMA mode.
Set Odd (micro) frame
Applies to isochronous IN and OUT endpoints only. Writing to this
field sets the Even/Odd (micro) frame (EO_FrNum) field to odd
(micro) frame. This field is not applicable for Scatter/Gather DMA
mode.
Set DATA0 PID
Applies to interrupt/bulk IN and OUT endpoints only. Writing to
this field sets the Endpoint Data PID (DPID) field in this register to
Description
5 USB2.0 HS OTG
R/W
Initial State
R_WS
1'b0
_SC
R_WS
1'b0
_SC
W
1'b0
W
1'b0
5-81

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents