Get Device Status (Command: 0Xfe, Data: Read 1 Byte); Get Error Code (Command: 0Xff, Data: Read 1 Byte) - Philips LPC214 Series User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
Table 229: Set Device Status Register bit description
Bit Symbol
3
4
7:5 -

14.9.7 Get Device Status (Command: 0xFE, Data: read 1 byte)

The Get Device Status command returns the Device Status Register. Reading the device
status returns 1 byte of data. The bit field definition is same as the Set Device Status
Register as shown in

14.9.8 Get Error Code (Command: 0xFF, Data: read 1 byte)

Different error conditions can arise inside the protocol engine. The Get Error Code
command returns the error code which last occurred. The 4 least significant bits form the
error code.
9397 750 XXXXX
User manual
Value Description
SUS_CH
Suspend (SUS) bit change indicator. The SUS bit can toggle
because:
The device goes into the suspended state.
The device is disconnected.
The device receives resume signalling on its upstream port.
The Suspend Change bit is reset after the register has been
read.
0
SUS bit not changed.
1
SUS bit changed. At the same time a DEV_STAT interrupt is
generated.
RST
Bus Reset bit. On a bus reset, the device will automatically go to
the default state. In the default state:
Device is unconfigured.
Will respond to address 0.
Control endpoint will be in the Stalled state.
All endpoints are enabled.
Data toggling is reset for all endpoints.
All buffers are cleared.
There is no change to the endpoint interrupt status.
DEV_STAT interrupt is generated.
0
This bit is cleared when read.
1
This bit is set when the device receives a bus reset.
Reserved, user software should not write ones to reserved bits.
The value read from a reserved bit is not defined.
Table
229.
Rev. 01 — 15 August 2005
UM10139
Chapter 14: USB Device Controller
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
Reset
value
0
0
NA
226

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2148Lpc2141Lpc2142Lpc2144Lpc2146

Table of Contents