Renesas R5S72626 Doll User Manual


  Open as PDF
of 2152
 
Section 26 USB 2.0 Host/Function Module
R01UH0134EJ0400 Rev. 4.00 Page 1435 of 2108
Sep 24, 2014
SH7262 Group, SH7264 Group
Bit Bit Name
Initial
Value R/W Description
4 DIR 0 R/W Transfer Direction
Specifies the transfer direction for the selected pipe.
0: Receiving direction
1: Sending direction
When this bit has been set to 0, this module uses the
selected pipe in the receiving direction, and when
this bit has been set to 1, this module uses the
selected pipe in the transmitting direction.
Modify these bits when the value of CSSTS is 0, the
PID bits are set to NAK, and no pipe is specified by
the CURPIPE bits.
To modify these bits after completing USB
communication using the selected pipe, write 1 and
then 0 to ACLRM continuously to clear the FIFO
buffer assigned to the selected pipe while the
CSSTS, PID, and CURPIPE bits are in the above-
described state.
Before modifying these bits after modifying the PID
bits for the selected pipe from BUF to NAK, check
that CSSTS and PBUSY are 0. However, if the PID
bits have been modified to NAK by this module,
checking PBUSY is not necessary.
3 to 0 EPNUM[3:0] 0000 R/W Endpoint Number
These bits specify the endpoint number for the
selected pipe.
Setting 0000 means unused pipe.
Modify these bits while CSSTS is 0 and PID is NAK.
Before modifying these bits after modifying the PID
bits for the selected pipe from BUF to NAK, check
that CSSTS and PBUSY are 0. However, if the PID
bits have been modified to NAK by this module,
checking PBUSY is not necessary.
Do not make the settings such that the combination
of the set values in the DIR and EPNUM bits should
be the same for two or more pipes (EPNUM = 0000
can be set for all the pipes).