1 set address (command: 0xd0, data: write 1 byte), Table 13–347, Nxp semiconductors – NXP Semiconductors LPC24XX UM10237 User Manual

Page 364

Advertising
background image

UM10237_4

© NXP B.V. 2009. All rights reserved.

User manual

Rev. 04 — 26 August 2009

364 of 792

NXP Semiconductors

UM10237

Chapter 13: LPC24XX USB device controller

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).

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.

Table 347. 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

Table 348. Device Set Address Register bit 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

Advertising