HS_USB 2.0 device
RM0082
486/844
Doc ID 018672 Rev 1
23.8 Programming
model
23.8.1 External
pin
connection
23.8.2 Register
map
The 32 bit wide CSRs of the UDC-AHB subsystem (
Control and status registers on
) provide a high degree of control, making the device both configurable and
scalable. These CSRs can be accessed at the base address 0xE110_0000.
Table 394.
Plug status register bit assignments
Bit
Name
Reset value Description
[31:04]
Reserved
-
Read: undefined. Write: should be zero.
[03]
phy_mode
1’h1
USB PHY mode.
This bit allows to set the physical terminations of PHY,
according to encoding:
1‘b0 = Normal (UDC is allowed to drive the USB 2.0
PHY).
1‘b1 = Tri-state (the USB 2.0 PHY is in non-driving
mode).
[02]
phy_rst
1’h1
USB PHY reset.
If set, this bit indicates that the USB PHY is in reset
mode, otherwise it is in normal mode.
[01]
state
1’h0
USB host connection state.
This RO bit reports the connection status of the USB
Host, according to encoding:
1‘b0 = Disconnected.
1‘b1 = Connection detected.
[00]
enable
1’h0
Plug interrupt.
If set, this bit enables an interrupt to be raised when
the USB host is attached/detached.
Table 395.
Plug pending register bit assignments
Bit
Name
Reset value Description
[31:01]
Reserved
-
Read: undefined. Write: should be zero.
[00]
intpend
1’h0
Plug interrupt.
This bit is set when the UPD block generates a plug
interrupt. It is cleared when the CPU reads it.
Signal name
Pin
Description
DEV_DP
M1
Device, positive data line
DEV_DM
M2
Device, negative data line
DEV_VBUS
G3
Device, VBUS detection line