Samsung S5PC110 Manual page 966

Risc microprocessor
Table of Contents

Advertisement

S5PC110_UM
5.8.7.19 Device Endpoint-n Transfer Size Register (DIEPTSIZn/DOEPTSIZn, R/W, Address = 0xEC00_0910
+n*20h, 0xEC00_0B10 +n*20h)
Endpoint_number: 1 ≤ n ≤ 15
The application must modify this register before enabling the endpoint. Once the endpoint is enabled using
Endpoint Enable bit of the Device Endpoint-n Control registers (DIEPCTLn.EPEna/DOEPCTLn.EPEna), the core
modifies this register. The application can only read this register once the core has cleared the Endpoint Enable
bit. This register is used only for endpoints other than Endpoint 0.
When Scatter/Gather DMA mode is enabled, this register must not be programmed by the application. If the
application reads this register when Scatter/Gather DMA mode is enabled, the core returns all zeros
DIEPTSIZn/
Bit
DOEPTSIZn
Reserved
[31]
MC
[30:29]
RxDPID
SUPCnt
[28:19] Packet Count
PktCnt
-
Multi Count
Applies to IN endpoints only.
For periodic IN endpoints, this field indicates the number of
packets that must be transmitted per microframe on the USB.
The core uses this field to calculate the data PID for isochronous
IN endpoints.
2'b01: 1 packet
2'b10: 2 packets
2'b11: 3 packets
For non-periodic IN endpoints, this field is valid only in Internal
DMA mode. It specifies the number of packets the core must
fetch for an IN endpoint before it switches to the endpoint pointed
to by the Next Endpoint field of the Device Endpoint-n Control
register (DIEPCTLn.NextEp).
Received Data PID
Applies to isochronous OUT endpoints only.
This is the data PID received in the last packet for this endpoint.
2'b00: DATA0
2'b01: DATA1
2'b10: DATA2
2'b11: MDATA
SETUP Packet Count
Applies to control OUT Endpoints only. This field specifies the
number of back-to-back SETUP data packets the endpoint can
receive.
2'b01: 1 packet
2'b10: 2 packets
2'b11: 3 packets
Indicates the total number of USB packets that constitute the
Transfer Size amount of data for this endpoint.
IN Endpoints: This field is decremented every time a packet
(maximum size or short packet) is read from the TxFIFO.
OUT Endpoints: This field is decremented every time a packet
Description
5 USB2.0 HS OTG
R/W
Initial State
-
1'b0
R/W
2'b0
R
R
R/W
R/W
10'h0
5-90

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents