How-To Guide

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 941 of 1852
Nov 30, 2020
RX23W Group 32. USB 2.0 Host/Function Module (USBc)
32.3.4 Pipe Control
Table 32.15 lists the pipe settings for the USB. With USB data transfer, data transfer is carried out using the pipe that the
software has associated with the endpoint. The USB has ten pipes that are used for data transfer.
Appropriate settings should be made for each of the pipes according to the specifications of the system.
Table 32.15 Pipe Settings
Register
Name Bit Name Setting Remarks
DCPCFG
PIPECFG
TYPE[1:0] Specifies the transfer type Pipes 1 to 9: Can be set
BFRE Selects the BRDY interrupt
mode
Pipes 1 to 5: Can be set
DBLB Selects double buffer mode Pipes 1 to 5: Can be set
DIR Selects transfer direction IN or OUT can be set
EPNUM[3:0] Endpoint number Pipes 1 to 9: Can be set
A value other than 0000b should be set when the pipe is used.
SHTNAK Selects disabled state for
pipe when transfer ends
Pipes 1 and 2: Can be set (only when bulk transfer has been
selected)
Pipes 3 to 5: Can be set
DCPMAXP
PIPEMAXP
DEVSEL[3:0] Selects a device Referenced only when the host controller is selected.
MXPS[8:0] Maximum packet size Compliant with USB Specification 2.0.
PIPEPERI IFIS Buffer flush Pipes 1 and 2: Can be set (only when isochronous transfer has
been selected)
Pipes 3 to 9: Cannot be set
IITV[2:0] Interval counter Pipes 1 and 2: Can be set (only when isochronous transfer has
been selected)
Pipes 3 to 5: Cannot be set
Pipes 6 to 9: Can be set (only when the host controller has been
selected)
DCPCTR
PIPEnCTR
BSTS Buffer status For the DCP, receive buffer status and transmit buffer status are
switched with the ISEL bit.
INBUFM IN buffer monitor Available only for pipes 1 to 5.
SUREQ SETUP request Can be set only for the DCP.
Can be controlled only when the host controller has been selected.
SUREQCLR SUREQ clear Can be set only for the DCP.
Can be controlled only when the host controller has been selected.
ATREPM Auto response mode Pipes 1 to 5: Can be set
Can be set only when the function controller has been selected.
ACLRM Auto buffer clear Pipes 1 to 9: Can be set
SQCLR Sequence clear Clears the data toggle bit.
SQSET Sequence set Sets the data toggle bit.
SQMON Sequence monitor Monitors the data toggle bit.
PBUSY Pipe busy status
PID[1:0] Response PID Refer to section 32.3.4.6, Response PID.
PIPEnTRE TRENB Transaction counter enable Pipes 1 to 5: Can be set
TRCLR Current transaction counter
clear
Pipes 1 to 5: Can be set
PIPEnTRN Transaction counter Pipes 1 to 5: Can be set