![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 749](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827749.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
749 of 1441
NXP Semiconductors
UM10503
Chapter 26: LPC43xx/LPC43Sxx USB1 Host/Device controller
operations will not be able execute. Undefined behavior will result if ULPISS = 0 and a
read or write operation is performed. To execute a wakeup operation, write all 32 bits of
the ULPI Viewport where ULPIPORT is constructed appropriately and the ULPIWU bit is a
1 and ULPIRUN bit is a 0. Poll the ULPI Viewport until ULPIWU is zero for the operation to
complete.
To execute a read or write operation, write all 32-bits of the ULPI Viewport where
ULPIDATWR, ULPIADDR, ULPIPORT, ULPIRW are constructed appropriately and the
ULPIRUN bit is a 1. Poll the ULPI Viewport until ULPIRUN is zero for the operation to
complete. Once ULPIRUN is zero, the ULPIDATRD will be valid if the operation was a
read.
The polling method above could also be replaced and interrupt driven using the ULPI
interrupt defined in the USBSTS and USBINTR registers. When a wakeup or read/write
operation complete, the ULPI interrupt will be set.
Table 547. USB ULPI viewport register (ULPIVIEWPORT - address 0x4000 7170) bit description
Bit
Symbol
Value
Description
Access
Reset
value
7:0
ULPIDATWR
When a write operation is commanded, the data to be sent is written
to this field.
R/W
0
15:8
ULPIDATRD
After a read operation completes, the result is placed in this field.
R
0
23:16
ULPIADDR
When a read or write operation is commanded, the address of the
operation is written to this field.
R/W
0
26:24
ULPIPORT
For the wakeup or read/write operation to be executed, this value
must be written as 0.
R/W
000
27
ULPISS
ULPI sync state. This bit represents the state of the ULPI interface.
R
0
0
In another state (ie. carkit, serial, low power)
1
Normal Sync. State.
28
-
-
Reserved
-
-
29
ULPIRW
ULPI Read/Write control. This bit selects between running a read or
write operation.
R/W
0
0
Read
1
Write
30
ULPIRUN
ULPI Read/Write Run.
Writing the 1 to this bit will begin the read/write operation. The bit will
automatically transition to 0 after the read/write is complete. Once
this bit is set, the driver can not set it back to 0.
Remark:
The driver must never execute a wake-up and a read/write
operation at the same time.
R/W
-
31
ULPIWU
ULPI Wake-up.
Writing the 1 to this bit will begin the wake-up operation. The bit will
automatically transition to 0 after the wake-up is complete. Once this
bit is set, the driver can not set it back to 0.
Remark:
The driver must never execute a wake-up and a read/write
operation at the same time.
R/W
0