Renesas R5S72645 Doll User Manual


  Open as PDF
of 2152
 
Section 26 USB 2.0 Host/Function Module
Page 1446 of 2108 R01UH0134EJ0400 Rev. 4.00
Sep 24, 2014
SH7262 Group, SH7264 Group
Bit Bit Name
Initial
Value R/W Description
10 ATREPM 0 R/W Auto Response Mode
Enables or disables auto response mode for the
pertinent pipe.
0: Auto response disabled
1: Auto response enabled
When the function controller function is selected and
the pertinent pipe is for bulk transfer, this bit can be
set to 1.
When this bit is set to 1, this module responds to the
token from the USB host as described below.
(1) When the pertinent pipe is for bulk IN transfer
(TYPE = 01 and DIR = 1)
When ATREPM = 1 and PID = BUF, this module
transmits a zero-length packet in response to the
IN token.
This module updates (allows toggling of) the
sequence toggle bit (DATA-PID) each time this
module receives the ACK from the USB host (in a
single transaction, IN token is received, zero-
length packet is transmitted, and then ACK is
received.).
In this case, this module does not generate the
BRDY or BEMP interrupt.
(2) When the pertinent pipe is for bulk OUT transfer
(TYPE = 01 and DIR = 0)
When ATREPM = 1 and PID = BUF, this module
returns NAK in response to the OUT (or PING)
token and generates the NRDY interrupt.
Modify this bit while CSSTS is 0 and PID is NAK.
Before modifying this bit after modifying the PID bits
for the corresponding 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.