How-To Guide

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 965 of 1852
Nov 30, 2020
RX23W Group 32. USB 2.0 Host/Function Module (USBc)
Figure 32.20 Process Flow for Operating as Portable Device
Secondary
Detection
Primary
Detection
Set VDPSRCE0 bit to 1
Set IDMSINKE0 bit to 1
Read CHGDETSTS0 bit
Wait for min 40 ms?
CHGDETSTS0 = 1?
Set VDPSRCE0 bit to 0
Set IDMSINKE0 bit to 0
Set VDMSRCE0 bit to 1
Set IDPSINKE0 bit to 1
Read PDDETSTS0 bit
Wait for min. 40 ms?
PDDETSTS0 = 1?
Target is SDP
Target is DCP or CDP
Target is CDP
Target is DCP
No
Yes
No
Yes
No
Yes
No
Yes
Data Contact Detection
(software waiting method)
Wait for min. 300 ms?
No
Yes
Data Contact
Detection
(hardware
detection
method)
Set RPDME0 bit to 1
Set IDPSRCE0 bit to 1
Is D+ low?
No
Use LNST[1:0] for
check
Yes
Detect VBUS
Set BATCHGE0 bit to 1
Set CNEN bit to 1
Set RPDME0 bit to 0
Set IDPSRCE0 bit to 0