How-To Guide

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 896 of 1852
Nov 30, 2020
RX23W Group 32. USB 2.0 Host/Function Module (USBc)
32.2.23 DCP Configuration Register (DCPCFG)
Note 1. Modify this bit while DCPCTR.PID[1:0] bits are 00b (NAK). Before modifying this bit after modifying the DCPCTR.PID[1:0] bits
for the DCP from 01b (BUF) to 00b (NAK), check that the DCPCTR.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.
DIR Bit (Transfer Direction)
When the host controller is selected, the DIR bit sets the transfer direction of the data stage and status stage.
When the function controller is selected, the DIR bit should be set to 0.
SHTNAK Bit (Pipe Disabled at End of Transfer)
The SHTNAK bit specifies whether to modify PID[1:0] bits to 00b (NAK) upon the end of transfer when the selected
pipe is in the receiving direction.
The SHTNAK bit is valid when the selected pipe in the receiving direction.
When the SHTNAK bit is set to 1, the USB modifies the DCPCTR.PID[1:0] bits for the DCP to 00b (NAK) on
determining the end of the transfer. The USB determines that the transfer has ended on the following condition.
A short packet (including a zero-length packet) is successfully received.
Address(es): USB0.DCPCFG 000A 005Ch
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
————————
SHTNA
K
——DIR————
Value after reset:
0000000000000000
Bit Symbol Bit Name Description R/W
b3 to b0 Reserved These bits are read as 0. The write value should be 0. R/W
b4 DIR Transfer Direction*
1
0: Data receiving direction
1: Data transmitting direction
R/W
b6, b5 Reserved These bits are read as 0. The write value should be 0. R/W
b7 SHTNAK Pipe Disabled at End of Transfer*
1
0: Pipe continued at the end of transfer
1: Pipe disabled at the end of transfer
R/W
b15 to b8 Reserved These bits are read as 0. The write value should be 0. R/W