R01UH0823EJ0100 Rev.1.00
Page 890 of 1823
Jul 31, 2019
RX23W Group
32. USB 2.0 Host/Function Module (USBc)
32.2.25
DCP Control Register (DCPCTR)
Note 1. Only 0 can be read.
Note 2. Write 1 to the SQSET and SQCLR bits while PID[1:0] bits are 00b (NAK). Before modifying these bits after modifying the
PID[1:0] bits for the DCP 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 PID[1:0] bits control the response type of the USB during control transfer.
(1) When the host controller is selected
Modify the setting of the PID[1:0] bits from 00b (NAK) to 01b (BUF) using the following procedure.
When the transmitting direction is set
Write all the transmit data to the FIFO buffer while the DVSTCTR0.UACT bit is 1 and PID[1:0] bits are 00b
(NAK), and then write 01b (BUF response). After PID[1:0] have been set to 01b (BUF), the USB executes the OUT
transaction.
When the receiving direction is set
Check that the FIFO buffer is empty (or empty the buffer) while the DVSTCTR0.UACT bit is 1 and PID[1:0] bits
are 00b (NAK), and then set PID[1:0] bits to 01b (BUF). After PID[1:0] bits have been set to 01b (BUF), the USB
executes the IN transaction.
Address(es): 000A 0060h
b15
b14
b13
b12
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
BSTS SUREQ
—
—
SUREQ
CLR
—
—
SQCLR SQSET SQMO
N
PBUSY
—
—
CCPL
PID[1:0]
Value after reset:
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b1, b0
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
b2
Control Transfer End Enable
0: Invalid
1: Completion of control transfer is enabled.
R/W
b4, b3
—
Reserved
These bits are read as 0. The write value should be 0.
R/W
b5
Pipe Busy Flag
0: DCP is not used for the transaction.
1: DCP is used for the transaction.
R
b6
Sequence Toggle Bit Monitor Flag
0: DATA0
1: DATA1
R
b7
Sequence Toggle Bit Set*
0: Invalid
1: Specifies DATA1.
b8
Sequence Toggle Bit Clear*
0: Invalid
1: Specifies DATA0.
b10, b9
—
Reserved
These bits are read as 0. The write value should be 0.
R/W
b11
SUREQ Bit Clear
0: Invalid
1: Clears the SUREQ bit to 0.
R/W
b13, b12
—
Reserved
These bits are read as 0. The write value should be 0.
R/W
b14
Setup Token Transmission
0: Invalid
1: Transmits the setup packet.
R/W
b15
Buffer Status Flag
0: Buffer access is disabled.
1: Buffer access is enabled.
R