R01UH0823EJ0100 Rev.1.00
Page 894 of 1823
Jul 31, 2019
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 PIPE1 to
PIPE9. It also selects single or double buffer mode, and whether to continue or disable pipe operation at the end of
transfer.
Address(es): 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:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b3 to b0
Endpoint Number*
These bits specify the endpoint number for the
selected pipe.
Setting 0000b means an unused pipe.
R/W
b4
Transfer Direction*
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
Pipe Disabled at End of Transfer*
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
Double Buffer Mode*
0: Single buffer
1: Double buffer
R/W
b10
BRDY Interrupt Operation Specification
*
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
Transfer Type*
PIPE1 and PIPE2
b15 b14
0 0: Pipe not used
0 1: Bulk transfer
1 0: Setting prohibited
1 1: Isochronous transfer
PIPE3 to PIPE5
b15 b14
0 0: Pipe not used
0 1: Bulk transfer
1 0: Setting prohibited
1 1: Setting prohibited
PIPE6 to PIPE9
b15 b14
0 0: Pipe not used
0 1: Setting prohibited
1 0: Interrupt transfer
1 1: Setting prohibited
R/W