Renesas R5S72646 Doll User Manual


  Open as PDF
of 2152
 
Section 26 USB 2.0 Host/Function Module
R01UH0134EJ0400 Rev. 4.00 Page 1503 of 2108
Sep 24, 2014
SH7262 Group, SH7264 Group
3. Wait until the corresponding CSSTS bit is cleared to 0 (only when the host controller function
has been selected).
4. Wait until the corresponding PBUSY bit is cleared to 0.
Note: The PBUSY bit may remain set to 1 if the device is detached while USB transaction
processing is in progress.
5. Modify the bits in the pipe control register.
The following bits in the pipe control registers can be modified only when the pertinent
information has not been set by the CURPIPE bits in CFIFOSEL, D0FIFOSEL and D1FIFOSEL.
Registers that Should Not be Set When CURPIPE in FIFO-PORT is set.
Bits in DCPCFG and DCPMAXP
Bits in PIPECFG, PIPEBUF, PIPEMAXP and PIPEPERI
ACLRM bit in PIPEnCTR
In order to modify pipe information, the CURPIPE bits should be set to the pipes other than the
pipe to be modified. For the DCP, the buffer should be cleared using BCLR after the pipe
information is modified.
(2) Transfer Types
The TYPE bit in PIPEPCFG is used to specify the transfer type for each pipe. The transfer types
that can be set for the pipes are as follows.
1. DCP: No setting is necessary (fixed at control transfer).
2. PIPE1 and PIPE2: These should be set to bulk transfer or isochronous transfer.
3. PIPE3 to PIPE5: These should be set to bulk transfer.
4. PIPE6 to PIPE9: These should be set to interrupt transfer.
(3) Endpoint Number
The EPNUM bit in PIPEPCFG is used to set the endpoint number for each pipe. The DCP is fixed
at endpoint 0. The other pipes can be set from endpoint 1 to endpoint 15.
1. DCP: No setting is necessary (fixed at end point 0).
2. PIPE1 to PIPE9: The endpoint numbers from 1 to 15 should be selected and set.
These should be set so that the combination of the DIR bit and EPNUM bit is unique.