How-To Guide

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 861 of 1852
Nov 30, 2020
RX23W Group 32. USB 2.0 Host/Function Module (USBc)
32. USB 2.0 Host/Function Module (USBc)
32.1 Overview
This MCU incorporates a USB 2.0 host/function module (USB0).
The USB module is a USB controller that is equipped to operate as a host controller or function controller. The module
supports full-speed and low-speed transfer as defined in Universal Serial Bus (USB) Specification 2.0. The module has
an internal USB transceiver and supports all of the transfer types defined in USB Specification 2.0. It also supports
Battery Charging Specification Revision 1.2.
The USB has buffer memory for data transfer, providing a maximum of 10 pipes. Pipes 1 to 9 can be assigned any
endpoint number based on peripheral devices used for communication or based on the user system.
Table 32.1 shows the specifications of the USB.
Table 32.1 USB Specifications
Item Specifications
Features USB Device Controller (UDC) and transceiver for USB 2.0 are incorporated.
Host controller, function controller, and On-The-Go (OTG) are supported (one channel)
The host controller and the function controller can be switched by software.
Self-power mode or bus power mode can be selected.
BC1.2 (Battery Charging Specification Revision 1.2) is supported.
When the host controller is selected:
Full-speed transfer (12 Mbps) and low-speed transfer (1.5 Mbps) are supported
Automatic scheduling for SOF and packet transmissions
Programmable intervals for isochronous and interrupt transfers
When the function controller is selected:
Full-speed transfer (12 Mbps) and low-speed transfer (1.5 Mbps) are supported
Control transfer stage control function
Device state control function
Auto response function for SET_ADDRESS request
SOF interpolation function
Communication data transfer type
Control transfer
Bulk transfer
Interrupt transfer
Isochronous transfer
Pipe configuration
Buffer memory for USB communication is provided.
Up to 10 pipes can be selected (including the default control pipe).
Pipes 1 to 9 can be assigned any endpoint number.
Transfer conditions that can be set for each pipe:
Pipe 0: Control transfer, 64-byte single buffer
Pipes 1 and 2: 64-byte double buffer can be specified for bulk transfer
256-byte double buffer for isochronous transfer
Pipes 3 to 5: Bulk transfer, 64-byte double buffer
Pipes 6 to 9: Interrupt transfer, 64-byte single buffer
Others
Reception ending function using transaction count
Function that changes the BRDY interrupt event notification timing (BFRE)
Function that automatically clears the buffer memory after the data for the pipe specified at
the DnFIFO (n = 0, 1) port has been read (DCLRM)
NAK setting function for response PID generated by end of transfer (SHTNAK)
On-chip pull-up and pull-down resistors of D+/D–
Low power consumption function Module-stop state can be set.