DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10316_0
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 00.06 — 17 December 2008
169 of 571
NXP Semiconductors
UM10316
Chapter 13: LPC29xx USB device
The EP_ RAM space (in words) required for the physical endpoint can be expressed as
where dbstatus = 1 for a single buffered endpoint and 2 for double a buffered endpoint.
Since all the realized endpoints occupy EP_RAM space, the total EP_RAM requirement is
where N is the number of realized endpoints. Total EP_RAM space should not exceed
2048 bytes.
9.4.2 USB Realize Endpoint register (USBReEp - 0xE010 C244)
Writing one to a bit in this register causes the corresponding endpoint to be realized.
Writing zeros causes it to be unrealized. This register returns to its reset state when a bus
reset occurs. USBReEp is a read/write register.
EPRAMspace
MaxPacketSize
3
+
4
--------------------------------------------------
1
+
⎝
⎠
⎛
⎞
dbstatus
×
=
TotalEPRAMspace
32
EPRAMspace n
( )
n
0
=
N
∑
+
=
Table 140. USB Realize Endpoint register (USBReEp - address 0xE010 C244) bit allocation
Reset value: 0x0000 0003
Bit
31
30
29
28
27
26
25
24
Symbol
EP31
EP30
EP29
EP28
EP27
EP26
EP25
EP24
Bit
23
22
21
20
19
18
17
16
Symbol
EP23
EP22
EP21
EP20
EP19
EP18
EP17
EP16
Bit
15
14
13
12
11
10
9
8
Symbol
EP15
EP14
EP13
EP12
EP11
EP10
EP9
EP8
Bit
7
6
5
4
3
2
1
0
Symbol
EP7
EP6
EP5
EP4
EP3
EP2
EP1
EP0
Table 141. USB Realize Endpoint register (USBReEp - address 0xE010 C244) bit description
Bit
Symbol
Value
Description
Reset value
0
EP0
0
Control endpoint EP0 is not realized.
1
1
Control endpoint EP0 is realized.
1
EP1
0
Control endpoint EP1 is not realized.
1
1
Control endpoint EP1 is realized.
31:2
EPxx
0
Endpoint EPxx is not realized.
0
1
Endpoint EPxx is realized.