Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
621
/
631
USB local address: [USB_ BUFTAB] + n×8 + 4
Bit Field
Name
Description
15:1
ADDRn_RX[14:0]
Receive buffer address
Endpoint packet buffer start address for the endpoint to hold data when the next PID
SETUP or OUT token packet is received
0
-
Since packet buffer memory addresses are word (32-bit) aligned, this bit must be 0
Receive data byte number register n (USB_CNTn_RX)
Address offset: [USB_ BUFTAB] + n×16 + 12
USB local address: [USB_ BUFTAB] + n×8 + 6
Bit Field
Name
Description
15
BLSIZE
Memory block size
0: The memory block size is 2 bytes
1: The memory block size is 32 bytes
14:10
NUM_BLK[4:0]
Number of memory blocks
Records the number of memory blocks allocated to the endpoint packet receive buffer
and determines the size of the endpoint packet receive buffer that is ultimately used.
For details, please refer to the following Table 26-8.
9:0
CNTn_RX[9:0]
Number of bytes received
Written by the USB module to record the actual number of bytes of the latest PID
SETUP or OUT token packet received by the endpoint.
Note: As shown in Table 26-2 and Table 26-3 double buffered OUT endpoints and isochronous OUT endpoints require
two USB_CNTn_RX registers: USB_CNTn_RX_0 and USB_CNTn_RX_1.
Table 26-8 Endpoint packet receive buffer size definition
NUM_BLK[4:0]
BLSIZE = 0
BLSIZE = 1
00000
Not allowed
32 bytes