R01UH0823EJ0100 Rev.1.00
Page 912 of 1823
Jul 31, 2019
RX23W Group
32. USB 2.0 Host/Function Module (USBc)
32.3
Operation
32.3.1
System Control
This section describes the register settings that are necessary for initialization of this module and power consumption
control.
32.3.1.1
Setting Data to the USB Related Register
Setting the SYSCFG.USBE bit to 1 after starting the clock supply to the USB (SYSCFG.SCKE bit = 1) enables and starts
USB operation.
32.3.1.2
Controller Function Selection
For the USB, the host or function controller can be selected using the SYSCFG.DCFM bit. Note that the DCFM bit
should be modified in the initial settings immediately after a reset is released or when pulling up of the D+ line and
pulling down of the D+ and D– lines are disabled (the SYSCFG.DPRPU bit = 0 and DRPD bit = 0).
32.3.1.3
Controlling USB Data Bus Resistors
The USB has pull-up and pull-down resistors for the D+ and D– lines. Pull up or pull down these lines by setting the
SYSCFG.DPRPU and DRPD bits.
When the function controller is selected, confirm that connection to the USB host is made, then set the SYSCFG.DPRPU
bit to 1 and pull up the D+ line (during full-speed) and D– line (during low-speed).
When the SYSCFG.DPRPU bit is set to 1 during communication with the PC, the USB module disables the pull-up
resistor of the USB data line, thus notifying the USB host of disconnection.
When the host controller is selected, set the SYSCFG.DRPD bit and pull down the D+ and D– lines.
Table 32.11
Controlling USB Data Bus Resistors
Settings
Controlling USB Data Bus Resistors
DRPD
DPRPU
DMRPU
D–
D+
Remarks
0
0
0
Open
Open
When not used
0
1
0
Open
Pull-up
When operating as the function controller (full-speed)
0
0
1
Pull-up
Open
When operating as the function controller (low-speed)
1
0
0
Pull-down
Pull-down
When operating as the host controller
Other than above
—
—
Setting prohibited