How-To Guide

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 898 of 1852
Nov 30, 2020
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.
PID[1:0] Bits (Response PID)
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): USB0.DCPCTR 000A 0060h
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
BSTS SUREQ
SUREQ
CLR
——SQCLRSQSET
SQMO
N
PBUSY CCPL PID[1:0]
Value after reset:
0000000001000000
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
b2 CCPL 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 PBUSY Pipe Busy Flag 0: DCP is not used for the transaction.
1: DCP is used for the transaction.
R
b6 SQMON Sequence Toggle Bit Monitor 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
b10, b9 Reserved These bits are read as 0. The write value should be 0. R/W
b11 SUREQCLR 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 SUREQ Setup Token Transmission 0: Invalid
1: Transmits the setup packet.
R/W
b15 BSTS Buffer Status Flag 0: Buffer access is disabled.
1: Buffer access is enabled.
R