9397 750 XXXXX
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
223
Philips Semiconductors
UM10139
Volume 1
Chapter 14: USB Device Controller
14.9.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 phase
of the setup token. (Alternately, issuing the Set Address command twice will set the
address in the device). At power on reset, the DEV_EN is set to 0. After bus reset, the
address is reset to 0x00. The enable bit is set to 1. The device will respond on packets for
function address 0x00, endpoint 0 (default endpoint).
14.9.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.
Select Endpoint
Endpoint 0
00 00 05 00
Read 1 byte (optional) - 00 00 02 00
Endpoint 1
00 01 05 00
Read 1 byte (optional) - 00 01 02 00
Endpoint 2
00 02 05 00
Read 1 byte (optional) - 00 02 02 00
Endpoint xx
00 xx 05 00
Read 1 byte (optional) - 00 xx 02 00
xx - physical endpoint number
Endpoint 31
00 1F 05 00
Read 1 byte (optional) - 00 1F 02 00
Select Endpoint/Clear Interrupt
Endpoint 0
00 40 05 00
Read 1 byte - 00 40 02 00
Endpoint 1
00 41 05 00
Read 1 byte - 00 41 02 00
Endpoint 2
00 42 05 00
Read 1 byte - 00 42 02 00
Endpoint xx
00 xx 05 00
Read 1 byte - 00 xx 02 00
xx - (physical endpoint 0x40)
Endpoint 31
00 5F 05 00
Read 1 byte - 00 5F 02 00
Set Endpoint Status
Endpoint 0
00 40 05 00
Write 1 byte - 00 <Byte> 01 00
Endpoint 1
00 41 05 00
Write 1 byte - 00 <Byte> 01 00
Endpoint 2
00 42 05 00
Write 1 byte - 00 <Byte> 01 00
Endpoint xx
00 xx 05 00
Write 1 byte - 00 <Byte> 01 00
xx - (physical endpoint 0x40)
Endpoint 31
00 5F 05 00
Write 1 byte - 00 <Byte> 01 00
Clear Buffer
Selected Endpoint
00 F2 05 00
Read 1 byte (optional) - 00 F2 02 00
Validate Buffer
Selected Endpoint
00 FA 05 00
None
Table 225: Protocol engine command code table
Command name
Recipient
Command
Data phase (coding)
Table 226: Device Set Address Register bit description
Bit
Symbol
Description
Reset value
6:0
DEV_ADDR
Device address set by the software.
0x00
7
DEV_EN
Device Enable.
0