English
Language : 

UM10562 Datasheet, PDF (357/942 Pages) NXP Semiconductors – LPC408x/407x User manual
NXP Semiconductors
UM10562
Chapter 12: LPC408x/407x USB device controller
Table 297. SIE command code table
Command name
Recipient
Code (Hex) Data phase
Device commands
Set Address
Device
D0
Write 1 byte
Configure Device
Device
D8
Write 1 byte
Set Mode
Device
F3
Write 1 byte
Read Current Frame Number Device
F5
Read 1 or 2 bytes
Read Test Register
Device
FD
Read 2 bytes
Set Device Status
Device
FE
Write 1 byte
Get Device Status
Device
FE
Read 1 byte
Get Error Code
Device
FF
Read 1 byte
Read Error Status
Device
FB
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
12.12.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).
Table 298. Set Address command bit description
Bit Symbol
Description
6:0 DEV_ADDR Device address set by the software. After a bus reset this field is set to 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.
Reset value
0
0
UM10562
User manual
All information provided in this document is subject to legal disclaimers.
Rev. 1 — 13 September 2012
© NXP B.V. 2012. All rights reserved.
357 of 942