Datasheet

363
42023E–SAM–07/2013
ATSAM4L8/L4/L2
Figure 17-16. Memory organization
Each pipe n descriptor bank consists of four words.
The address of the pipe and bank used (Pn_ADDR_BK0/1).
The packet size information for the pipe and bank (Pn_PCKSIZE_BK0/1):
Table 17-5. Pn_PCKSIZE_BK0/1 structure
AUTO_ZLP: Auto zero length packet, see ”Multi packet mode for OUT pipes” on
page 368.
MULTI_PACKET_SIZE: see ”Multi packet mode and single packet mode.” on page
352.
BYTE_COUNT: see ”Multi packet mode and single packet mode.” on page 352.
31 30:16 15 14:0
AUTO_ZLP MULTI_PACKET_SIZE - BYTE_COUNT
Pn BK0
P0_CTR_STA_BK0
P0_PCKSIZE_BK0
P0_ADDR_BK0
UDESCA
Growing Memory Addresses
Descriptor P0
P0_CTR_STA1
P0_CTR_STA_BK1
P0_PCKSIZE_BK1
P0_ADDR_BK1
Reserved
Bank0
Bank1
+0x000
+0x004
+0x008
+0x00C
+0x010
+0x014
+0x018
+0x01C
P1_CTR_STA_BK0
P1_PCKSIZE_BK0
P1_ADDR_BK0
Descriptor P1
P1_CTR_STA1
P1_CTR_STA_BK1
P1_PCKSIZE_BK1
P1_ADDR_BK1
Reserved
Bank0
Bank1
+0x020
+0x024
+0x028
+0x02C
+0x030
+0x034
+0x038
+0x03C
Pn_CTR_STA_BK0
Pn_PCKSIZE_BK0
Pn_ADDR_BK0
Pn_CTR_STA1
Pn_CTR_STA_BK1
Pn_PCKSIZE_BK1
Pn_ADDR_BK1
Reserved
Bank0
Bank1
Descriptor Pn
Pn BK1
USB descriptors
USB Buffers