How-To Guide

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 911 of 1852
Nov 30, 2020
RX23W Group 32. USB 2.0 Host/Function Module (USBc)
PIPEnCTR (n = 6 to 9)
Note 1. Only 0 can be read. Only 1 can be written.
Note 2. 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 the 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.
Address(es): USB0.PIPE6CTR 000A 007Ah, USB0.PIPE7CTR 000A 007Ch, USB0.PIPE8CTR 000A 007Eh, USB0.PIPE9CTR 000A 0080h
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
BSTS—————ACLRMSQCLRSQSET
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 at the USB bus.
1: The relevant pipe is used at the USB bus.
R
b6 SQMON Sequence Toggle Bit
Confirmation Flag
0: DATA0
1: DATA1
R
b7 SQSET Sequence Toggle Bit Set*
2
0: Invalid
1: Specifies DATA1.
R/W
*
1
b8 SQCLR Sequence Toggle Bit Clear
*
2
0: Invalid
1: Specifies DATA0.
R/W
*
1
b9 ACLRM Auto Buffer Clear Mode*
2,
*
3
0: Auto buffer clear mode is disabled.
1: Auto buffer clear mode is enabled (all buffers are initialized)
R/W
b14 to b10 Reserved These bits are read as 0. The write value should be 0. R/W
b15 BSTS Buffer Status Flag 0: Buffer access is disabled.
1: Buffer access is enabled.
R