Samsung S5PC100 User Manual page 920

Table of Contents

Advertisement

S5PC100 USER'S MANUAL (REV1.0)
8.2.53 Device Endpoint-N Transfer Size Register (DIEPTSIZn/DOEPTSIZn, R/W, Address = 0xED20_0910
+n*20h, 0xED20_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, the core modifies this register. The application
reads this register once the core has cleared the Endpoint Enable bit. This register is used only for endpoints
other than Endpoint 0.
DIEPTSIZn/
Bit
DOEPTSIZn
Reserved
[31]
MC
[30:29]
RxDPID
SUPCnt
PktCnt
[28:19] Packet Count
-
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.
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 is
read from the TxFIFO
• OUT Endpoints: This field is decremented every time a packet
is written to the RxFIFO
Description
USB2.0 HS OTG
R/W
Reset
Value
1'b0
R/W
2'b0
R
R
R/W
R/W
10'h0
8.10-77

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents