
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
204 of 808
NXP Semiconductors
UM10360
Chapter 11: LPC17xx USB device controller
10.5.5 USB Control register (USBCtrl - 0x5000 C228)
This register controls the data transfer operation of the USB device. It selects the endpoint
buffer that is accessed by the USBRxData and USBTxData registers, and enables
reading and writing them. USBCtrl is a read/write register.
10.6 SIE command code registers
The SIE command code registers are used for communicating with the Serial Interface
Engine. See
Section 11–12 “Serial interface engine command description”
for more
information.
10.6.1 USB Command Code register (USBCmdCode - 0x5000 C210)
This register is used for sending the command and write data to the SIE. The commands
written here are propagated to the SIE and executed there. After executing the command,
the register is empty, and the CCEMPTY bit of USBDevIntSt register is set. See
for details. USBCmdCode is a write only register.
Table 196. USB Transmit Packet Length register (USBTxPLen - address 0x5000 C224) bit
description
Bit
Symbol
Value Description
Reset
value
9:0
PKT_LNGTH
-
The remaining number of bytes to be written to the
selected endpoint buffer. This field is decremented by 4 by
hardware after each write to USBTxData. When this field
decrements to 0, the TxENDPKT bit will be set in
USBDevIntSt.
0x000
31:10 -
-
Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
NA
Table 197. USB Control register (USBCtrl - address 0x5000 C228) bit description
Bit
Symbol
Value
Description
Reset
value
0
RD_EN
Read mode control. Enables reading data from the OUT
endpoint buffer for the endpoint specified in the
LOG_ENDPOINT field using the USBRxData register.
This bit is cleared by hardware when the last word of
the current packet is read from USBRxData.
0
0
Read mode is disabled.
1
Read mode is enabled.
1
WR_EN
Write mode control. Enables writing data to the IN
endpoint buffer for the endpoint specified in the
LOG_ENDPOINT field using the USBTxData register.
This bit is cleared by hardware when the number of
bytes in USBTxLen have been sent.
0
0
Write mode is disabled.
1
Write mode is enabled.
5:2
LOG_ENDPOINT -
Logical Endpoint number.
0x0
31:6 -
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is not
defined.
NA