English
Language : 

SH7764 Datasheet, PDF (954/1752 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC Engine Family SH-4A Series
Section 21 USB 2.0 Host/Function Module (USB)
Bit
4
3 to 0
Bit Name
DIR
EPNUM[3:0]
Initial
Value R/W
0
R/W
0000 R/W
Description
Transfer Direction
Specifies the transfer direction for the selected pipe.
0: Receiving direction
1: Sending direction
When software has set this bit to 0, this module uses
the selected pipe in the receiving direction, and when
software has set this bit to 1, this module uses the
selected pipe in the transmitting direction.
Modify these bits while CSSTS is 0 and PID is NAK
and before the pipe is selected by the CURPIPE bits.
To modify these bits after completing USB
communication using the selected pipe, write 1 and
then 0 to ACLRM continuously through software 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 through software is not necessary.
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 through software 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).
Rev. 1.00 Nov. 22, 2007 Page 898 of 1692
REJ09B0360-0100