How-To Guide

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 906 of 1852
Nov 30, 2020
RX23W Group 32. USB 2.0 Host/Function Module (USBc)
32.2.30 Pipe n Control Registers (PIPEnCTR) (n = 1 to 9)
PIPEnCTR (n = 1 to 5)
Note 1. Only 0 can be read.
Note 2. Modify the ATREPM bit or write 1 to the SQCLR or SQSET bit while the PID[1:0] bits are 00b (NAK). Before modifying these bits
after modifying the PID[1:0] bits for the selected pipe from 01b (BUF) to 00b (NAK), check that the 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 3. Modify the ACLRM bit while 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 this bit after modifying the PID[1:0] bits for the selected pipe from 01b (BUF) to 00b (NAK),
check that the 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.
The PIPEnCTR register can be set regardless of the pipe selection in the PIPESEL register.
Address(es): USB0.PIPE1CTR 000A 0070h, USB0.PIPE2CTR 000A 0072h, USB0.PIPE3CTR 000A 0074h, USB0.PIPE4CTR 000A 0076h,
USB0.PIPE5CTR 000A 0078h
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
BSTS
INBUF
M
———
ATREP
M
ACLRM SQCLR SQSET
SQMO
N
PBUSY PID[1:0]
Value after reset:
0000000000000000
Bit Symbol Bit Name Description R/W
b1, b0 PID[1:0] Response PID
b1 b0
0 0: NAK response
0 1: BUF response (depending on the buffer state)
1 0: STALL response
1 1: STALL response
R/W
b4 to b2 Reserved These bits are read as 0. The write value should be 0. R/W
b5 PBUSY Pipe Busy Flag 0: The relevant pipe is not used for the transaction.
1: The relevant pipe is used for the transaction.
R
b6 SQMON Sequence Toggle Bit
Confirmation
0: DATA0
1: DATA1
R
b7 SQSET Sequence Toggle Bit Set*
2
0: Write disabled
1: Specifies DATA1.
R/W*
1
b8 SQCLR Sequence Toggle Bit Clear
*
2
0: Write disabled
1: Specifies DATA0.
R/W*
1
b9 ACLRM Auto Buffer Clear Mode*
3
0: Disabled
1: Enabled (all buffers are initialized)
R/W
b10 ATREPM Auto Response Mode*
2
0: Auto response is disabled.
1: Auto response is enabled.
R/W
b13 to b11 Reserved These bits are read as 0. The write value should be 0. R/W
b14 INBUFM Transmit Buffer Monitor
Flag
0: There is no data to be transmitted in the buffer memory.
1: There is data to be transmitted in the buffer memory.
R
b15 BSTS Buffer Status Flag 0: Buffer access by the CPU is disabled.
1: Buffer access by the CPU is enabled.
R