![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 646](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827646.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
646 of 1441
NXP Semiconductors
UM10503
Chapter 25: LPC43xx/LPC43Sxx USB0 Host/Device/OTG controller
25.6.1 Use of registers
The register interface has bit functions described for device mode and bit functions
described for host mode. However, during OTG operations it is necessary to perform
tasks independent of the controller mode.
The only way to transition the controller mode out of host or device mode is by setting the
controller reset bit. Therefore, it is also necessary for the OTG tasks to be performed
independently of a controller reset as well as independently of the controller mode.
BINTERVAL
R/W
0x174
Length of virtual frame
0
0
ENDPTNAK
R/W
0x178
Endpoint NAK (device mode)
0
0
ENDPTNAKEN
R/W
0x17C
Endpoint NAK Enable (device mode) 0
0
-
-
0x180
Reserved
-
-
PORTSC1_D
R/W
0x184
Port 1 status/control (device mode)
0
0x3C00
0004
PORTSC1_H
R/W
0x184
Port 1 status/control (host mode)
0
-
-
-
0x188 -
0x1A0
-
-
-
OTGSC
R/W
0x1A4
OTG status and control
0
0x0020
0D09
USBMODE_D
R/W
0x1A8
USB device mode (device mode)
0
0xA
USBMODE_H
R/W
0x1A8
USB device mode (host mode)
0
-
Device endpoint registers
ENDPTSETUPSTAT
R/W
0x1AC
Endpoint setup status
0
0
ENDPTPRIME
R/W
0x1B0
Endpoint initialization
0
0
ENDPTFLUSH
R/W
0x1B4
Endpoint de-initialization
0
0
ENDPTSTAT
RO
0x1B8
Endpoint status
0
0
ENDPTCOMPLETE
R/W
0x1BC
Endpoint complete
0
0
ENDPTCTRL0
R/W
0x1C0
Endpoint control 0
0
0
ENDPTCTRL1
R/W
0x1C4
Endpoint control 1
0
0
ENDPTCTRL2
R/W
0x1C8
Endpoint control 2
0
0
ENDPTCTRL3
R/W
0x1CC
Endpoint control 3
0
0
ENDPTCTRL4
R/W
0x1D0
Endpoint control 4
0
0
ENDPTCTRL5
R/W
0x1D4
Endpoint control 5
0
0
Table 462. Register overview: USB0 OTG controller (register base address 0x4000 6000)
…continued
Name
Access Address
offset
Description
Reset
value
Reset value
after USB0
boot
Reference