HS_USB 2.0 device
RM0082
492/844
Doc ID 018672 Rev 1
23.8.5
Device control register
The device control is a RW register which allows to control (at runtime) the USB 2.0 device
after device configuration. The device control register bit assignments are given in
[02]
RWKP
1'h0
If set, the USB device is remote wake up capable.
[01:00]
SPD
2’h0
Device speed.
These 2 bits give the expected speed the application
programs for the USB device, according to encoding:
– 2‘b00 HS
– 2‘b01 FS
– 2‘b10 LS
– 2‘b11 Reserved
However, the actual speed at which the USB device
operates depends on the enumerated speed field (ENUM
SPD) of the device status register (see
Note: The UDC11-AHB subsystem uses only the LSB (bit
0) of SPD field, whereas bit 1 is don’t care (2’bx0 = LS,
2‘bx1 = FS).
Table 400.
Device configuration register bit assignments (continued)
Bit
Name
Reset value Description
Table 401.
Device control register bit assignments
Bit
Name
Reset value
Description
[31:24]
THLEN
(1)
8’h00
Threshold length.
This 8 bit field indicates the number (THLEN + 1) of 32 bit
entries in the RxFIFO before the DMA can start data transfer
(in an out transaction in DMA mode when thresholding is
enabled,
). The 8’h00 reset
value means that only one entry in RxFIFO is enough to
start the DMA data transfer.
[23:16]
BRLEN
8’h00
Burst length.
This 8 bit field indicates the length of a single burst on the
AHB bus as an integer number (BRLEN + 1) of 32 bit data
transfers, when burst split features of DMA mode is enabled
(
Burst split enable on page 485
). The 8’h00 reset value
means then a burst length of (1 · 32) bits.
[15:14]
Reserved
-
Read: undefined. Write: should be zero.
[13]
CSR_DONE
1'h0
CSR programming completion notification.
This bit is used by the application to notify the UDC-AHB
subsystem that all required CSRs configuration has been
completed (bit set to 1‘b1). Then, the UDC-AHB subsystem
can acknowledge (ACK reply) the current set configuration
or set interface command.