How-To Guide

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 902 of 1852
Nov 30, 2020
RX23W Group 32. USB 2.0 Host/Function Module (USBc)
32.2.27 Pipe Configuration Register (PIPECFG)
Note 1. Modify the TYPE[1:0], SHTNAK, and EPNUM[3:0] bits while the PIPEnCTR.PID[1:0] bits are 00b (NAK). Before modifying these
bits after modifying the PIPEnCTR.PID[1:0] bits for the selected pipe from 01b (BUF) to 00b (NAK), check that the
PIPEnCTR.PBUSY flag is 0. However, if the USB changes the PID[1:0] bits to 00b (NAK), the PBUSY flag does not need to be
checked by software.
Note 2. Modify the BFRE, DBLB, and DIR bits while the PIPEnCTR.PID[1:0] bits are 00b (NAK) and before the pipe is selected by the
CURPIPE[3:0] bits in the port select register. Before modifying these bits after modifying the PIPEnCTR.PID[1:0] bits for the
selected pipe from 01b (BUF) to 00b (NAK), check that the PIPEnCTR.PBUSY flag is 0. However, if the USB changes the
PID[1:0] bits to 00b (NAK), checking the PIPEnCTR.PBUSY flag through software is not necessary.
Note 3. To modify the BFRE, DBLB, and DIR bits after completing USB communication using the selected pipe, write 1 and then 0 to the
PIPEnCTR.ACLRM bit continuously through software to clear the FIFO buffer assigned to the selected pipe while the PID[1:0]
bits and CURPIPE[3:0] bits are in the state described in the above note 2.
The PIPECFG register specifies the transfer type, buffer memory access direction, and endpoint numbers for pipes 1 to 9.
It also selects single or double buffer mode, and whether to continue or disable pipe operation at the end of transfer.
Address(es): USB0.PIPECFG 000A 0068h
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
TYPE[1:0] BFRE DBLB
SHTNA
K
DIR EPNUM[3:0]
Value after reset:
0000000000000000
Bit Symbol Bit Name Description R/W
b3 to b0 EPNUM[3:0] Endpoint Number*
1
These bits specify the endpoint number for the
selected pipe.
Setting 0000b means an unused pipe.
R/W
b4 DIR Transfer Direction*
2,
*
3
0: Receiving direction
1: Transmitting direction
R/W
b6, b5 Reserved These bits are read as 0. The write value should be 0. R/W
b7 SHTNAK Pipe Disabled at End of Transfer*
1
0: Pipe assignment continued at the end of transfer
1: Pipe assignment disabled at the end of transfer
R/W
b8 Reserved This bit is read as 0. The write value should be 0. R/W
b9 DBLB Double Buffer Mode*
2,
*
3
0: Single buffer
1: Double buffer
R/W
b10 BFRE BRDY Interrupt Operation Specification
*
2,
*
3
0: BRDY interrupt upon transmitting or receiving data
1: BRDY interrupt upon completion of reading data
R/W
b13 to b11 Reserved These bits are read as 0. The write value should be 0. R/W
b15, b14 TYPE[1:0] Transfer Type*
1
Pipes 1 and 2
b15 b14
0 0: Pipe not used
0 1: Bulk transfer
1 0: Setting prohibited
1 1: Isochronous transfer
Pipes 3 to 5
b15 b14
0 0: Pipe not used
0 1: Bulk transfer
1 0: Setting prohibited
1 1: Setting prohibited
Pipes 6 to 9
b15 b14
0 0: Pipe not used
0 1: Setting prohibited
1 0: Interrupt transfer
1 1: Setting prohibited
R/W