
UM10375
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 3 — 14 June 2011
155 of 368
NXP Semiconductors
UM10375
Chapter 10: LPC13xx USB device controller
10.11.1 Set Address (Command: 0xD0, Data: write 1 byte)
The Set Address command is used to set the USB assigned address and enable the
(embedded) function. The address set in the device will take effect after the status stage
of the control transaction. After a bus reset, DEV_ADDR is set to 0x00, and DEV_EN is
set to 1. The device will respond to packets for function address 0x00, endpoint 0 (default
endpoint).
10.11.2 Configure Device (Command: 0xD8, Data: write 1 byte)
A value of 1 written to the register indicates that the device is configured and all the
enabled non-control endpoints will respond. Control endpoints are always enabled and
respond even if the device is not configured, in the default state.
Set Device Status
Device
FE
Write 1 byte
Get Device Status
Device
FE
Read 1 byte
Get Error Code
Device
FF
Read 1 byte
Endpoint Commands
Select Endpoint
Endpoint 0
00
Read 1 byte (optional)
Endpoint 1
01
Read 1 byte (optional)
Endpoint xx
xx
Read 1 byte (optional)
Select Endpoint/Clear Interrupt
Endpoint 0
40
Read 1 byte
Endpoint 1
41
Read 1 byte
Endpoint xx
xx
40
Read 1 byte
Set Endpoint Status
Endpoint 0
40
Write 1 byte
Endpoint 1
41
Write 1 byte
Endpoint xx
xx
40
Write 1 byte
Clear Buffer
Selected Endpoint
F2
Read 1 byte (optional)
Validate Buffer
Selected Endpoint
FA
None
Table 175. SIE command code table
Command name
Recipient
Code (Hex)
Data phase
Table 176. Device Set Address command description
Bit
Symbol
Description
Reset
value
6:0
DEV_ADDR
Device address set by the software. After a bus reset this
field is set to 0x00.
0x00
7
DEV_EN
Device Enable. After a bus reset this bit is set to 1.
0: Device will not respond to any packets.
1: Device will respond to packets for function address
DEV_ADDR.
0