![Texas Instruments AM1808 Скачать руководство пользователя страница 1733](http://html.mh-extra.com/html/texas-instruments/am1808/am1808_technical-reference-manual_10945581733.webp)
Registers
1733
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Universal Serial Bus 2.0 (USB) Controller
34.4.53 Transmit and Receive FIFO Register for Endpoint 4 (FIFO4)
The transmit and receive FIFO register for endpoint 4 (FIFO4) is shown in
and described in
.
Figure 34-79. Transmit and Receive FIFO Register for Endpoint 4 (FIFO4)
31
0
DATA
R/W-0
LEGEND: R/W = Read/Write; -
n
= value after reset
Table 34-83. Transmit and Receive FIFO Register for Endpoint 4 (FIFO4) Field Descriptions
Bit
Field
Value
Description
31-0
DATA
0-FFFF FFFFh
Writing to these addresses loads data into the Transmit FIFO for the corresponding endpoint.
Reading from these addresses unloads data from the Receive FIFO for the corresponding endpoint.
34.4.54 Device Control Register (DEVCTL)
The device control register (DEVCTL) is shown in
and described in
Figure 34-80. Device Control Register (DEVCTL)
7
6
5
4
3
2
1
0
BDEVICE
FSDEV
LSDEV
VBUS
HOSTMODE
HOSTREQ
SESSION
R-0
R-0
R-0
R-0
R-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 34-84. Device Control Register (DEVCTL) Field Descriptions
Bit
Field
Value
Description
7
BDEVICE
This read-only bit indicates whether the USB controller is operating as the 'A' device or the 'B'
device.
0
A device
1
B device
Only valid while a session is in progress.
6
FSDEV
0-1
This read-only bit is set when a full-speed or high-speed device has been detected being connected
to the port (high-speed devices are distinguished from full-speed by checking for high-speed chirps
when the device is reset). Only valid in Host mode.
5
LSDEV
0-1
This read-only bit is set when a low-speed device has been detected being connected to the port.
Only valid in Host mode.
4-3
VBUS
0-3h
These read-only bits encode the current VBus level as follows:
0
Below Session End
1h
Above Session End, below AValid
2h
Above AValid, below VBusValid
3h
Above VBusValid
2
HOSTMODE
0-1
This read-only bit is set when the USB controller is acting as a Host.
1
HOSTREQ
0-1
When set, the USB controller will initiate the Host Negotiation when Suspend mode is entered. It is
cleared when Host Negotiation is completed. ('B' device only)
0
SESSION
0-1
When operating as an 'A' device, you must set or clear this bit start or end a session. When
operating as a 'B' device, this bit is set/cleared by the USB controller when a session starts/ends.
You must also set this bit to initiate the Session Request Protocol (SRP). When the USB controller
is in Suspend mode, you may clear the bit to perform a software disconnect. A special software
routine is required to perform SRP.