Samsung S5PC100 User Manual page 913

Table of Contents

Advertisement

USB2.0 HS OTG
8.2.49 Device Endpoint-N Control Register (DIEPCTLn/DOEPCTLn, R/W, Address = 0xED20_0900+ n*20h,
0xED20_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]
SetEvenFr
SNAK
[27]
8.10 -70
Endpoint Enable
Applies to IN and OUT endpoints.
For IN endpoint, 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 (OUT only)
• Endpoint Disabled
• Transfer Complete Transfer Completed
Note: For control OUT 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.
Set Odd (micro) frame
Applies to isochronous IN and OUT endpoints only.
Writing to this field sets the Even/ Odd (micro) frame field to odd
(micro)frame.
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 DATA0.
Set Even (micro) frame
Applies to isochronous IN and OUT endpoints only.
Writing to this field sets the Even/ Odd (micro) frame field to even
(micro) frame.
Set NAK
Applies to IN and OUT endpoints.
A write to this bit sets the NAK bit for the endpoint. Using this bit,
the application controls the transmission of NAK handshakes on
an endpoint. The core can also set this bit for OUT endpoints on
Description
S5PC100 USER'S MANUAL (REV1.0)
R/W
R_WS
_SC
R_WS
_SC
W
W
W
Reset
Value
1'b0
1'b0
1'b0
1'b0
1'b0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents