DocID025202 Rev 7
RM0365
Universal serial bus full-speed device interface (USB)
1036
Address offset (“2 x 16 bits/word” access scheme): [USB_BTABLE] + n*8 + 2
USB local address: [USB_BTABLE] + n*8 + 2
Note:
In case of double-buffered or isochronous endpoints in the IN direction, this address location
is referred to as USB_COUNTn_TX_0.
In case of double-buffered or isochronous endpoints in the OUT direction, this address
location is used for USB_COUNTn_RX_0.
Reception buffer address n (USB_ADDRn_RX)
Address offset (“1 x 16 bits/word” access scheme): [USB_BTABLE] + n*16 + 8
Address offset (“2 x 16 bits/word” access scheme): [USB_BTABLE] + n*8 + 4
USB local address: [USB_BTABLE] + n*8 + 4
Note:
In case of double-buffered or isochronous endpoints in the OUT direction, this address
location is referred to as USB_ADDRn_RX_1.
In case of double-buffered or isochronous endpoints in the IN direction, this address location
is used for USB_ADDRn_TX_1.
Reception byte count n (USB_COUNTn_RX)
Address offset (“1 x 16 bits/word” access scheme): [USB_BTABLE] + n*16 + 12
Address offset (“2 x 16 bits/word” access scheme): [USB_BTABLE] + n*8 + 6
USB local address: [USB_BTABLE] + n*8 + 6
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Res.
Res.
Res.
Res.
Res.
Res.
COUNTn_TX[9:0]
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits 15:10 These bits are not used since packet size is limited by USB specifications to 1023 bytes. Their
value is not considered by the USB peripheral.
Bits 9:0
COUNTn_TX[9:0]:
Transmission byte count
These bits contain the number of bytes to be transmitted by the endpoint associated with the
USB_EPnR register at the next IN token addressed to it.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
ADDRn_RX[15:1]
-
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
-
Bits 15:1
ADDRn_RX[15:1]:
Reception buffer address
These bits point to the starting address of the packet buffer, which will contain the data
received by the endpoint associated with the USB_EPnR register at the next OUT/SETUP
token addressed to it.
Bit 0 This bit must always be written as ‘0 since packet memory is half-word wide and all packet
buffers must be half-word aligned.