Set Address; (Command: 0Xd0, Data: Write 1 Byte); Configure Device (Command: 0Xd8, Data: Write 1 Byte) - Philips LPC214 Series User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
Table 225: Protocol engine command code table
Command name
Select Endpoint
Select Endpoint/Clear Interrupt
Set Endpoint Status
Clear Buffer
Validate Buffer
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).
Table 226: Device Set Address Register bit description
Bit
Symbol
6:0
DEV_ADDR
7
DEV_EN

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.
9397 750 XXXXX
User manual
Recipient
Endpoint 0
Endpoint 1
Endpoint 2
Endpoint xx
Endpoint 31
Endpoint 0
Endpoint 1
Endpoint 2
Endpoint xx
Endpoint 31
Endpoint 0
Endpoint 1
Endpoint 2
Endpoint xx
Endpoint 31
Selected Endpoint
Selected Endpoint
Description
Device address set by the software.
Device Enable.
Rev. 01 — 15 August 2005
Chapter 14: USB Device Controller
Command
Data phase (coding)
00 00 05 00
Read 1 byte (optional) - 00 00 02 00
00 01 05 00
Read 1 byte (optional) - 00 01 02 00
00 02 05 00
Read 1 byte (optional) - 00 02 02 00
00 xx 05 00
Read 1 byte (optional) - 00 xx 02 00
xx - physical endpoint number
00 1F 05 00
Read 1 byte (optional) - 00 1F 02 00
00 40 05 00
Read 1 byte - 00 40 02 00
00 41 05 00
Read 1 byte - 00 41 02 00
00 42 05 00
Read 1 byte - 00 42 02 00
00 xx 05 00
Read 1 byte - 00 xx 02 00
xx - (physical endpoint number + 0x40)
00 5F 05 00
Read 1 byte - 00 5F 02 00
00 40 05 00
Write 1 byte - 00 <Byte> 01 00
00 41 05 00
Write 1 byte - 00 <Byte> 01 00
00 42 05 00
Write 1 byte - 00 <Byte> 01 00
00 xx 05 00
Write 1 byte - 00 <Byte> 01 00
xx - (physical endpoint number + 0x40)
00 5F 05 00
Write 1 byte - 00 <Byte> 01 00
00 F2 05 00
Read 1 byte (optional) - 00 F2 02 00
00 FA 05 00
None
UM10139
Reset value
0x00
0
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
223

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2148Lpc2141Lpc2142Lpc2144Lpc2146

Table of Contents