Renesas M16C Series User Manual page 211

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30245 Group
While the AUTO_SET is enabled (AUTO_SET bit is "1"), when one data packet whose is equal to the
maximum packet size (EPxIMP set value) has been written to IN FIFO in continuous transmit dis-
able, or, when data equal to the buffer size (byte count set in the BUF_SIZ of the EPxIFC) has been
written to IN FIFO in continuous transmit enable, the IN_BUF_STS1 and IN_BUF_STS0 flags are
updated without SET_IN_BUF_RDY bit being set to "1". However, when a short packet (data whose
size is smaller than the EPxIMP value in continuous transfer disable or the BUF_SIZ value in con-
tinuous transfer enable) has been written, the IN_BUF_STS1 and IN_BUF_STS0 flags are not auto-
matically updated. In such cases, set the SET_IN_BUF_RDY bit to "1" by software.
www.DataSheet4U.com
Transmit Operation
On completing transmitting of one packet data (Note 2) to the host, the IN_BUF_STS0 and IN_BUF_STS1
flags are automatically updated. In single buffer mode (when double buffer mode bit is "0"), these
flags are updated from "11
- While there are two packet data (Note 2) in IN FIFO, the IN_BUF_STS0 and IN_BUF_STS1 flags
are updated from "11
transmit data is left inside the IN FIFO.
- When there is one packet data (Note 2) in IN FIFO, the IN_BUF_STS0 and IN_BUF_STS0 flags
are updated from "01
empty.
Note 2: In continuous transfer enable, read the description by substituting the underlined part with
When IN token is received from the host CPU while SEND_STALL bit is set to "1", STALL response
is automatically returned.
When IN token is received from the host CPU while there are no packet data in the IN FIFO, NAK
response automatically is returned.
When IN token is received from the host CPU while there are packet data in the IN FIFO, data are
transmitted by using the current data toggle sequence bit. On completing one packet data transmit
(on receiving ACK from the host CPU), the IN FIFO status is updated (the IN_BUF_STS1 and
IN_BUF_STS0 flags are updated) and data toggle sequence bit is toggled (DATA0 → DATA1, or
DATA1 → DATA0). At this time, the endpoint x IN interrupt request occurs. When one packet data
has been unsuccessfully transmitted (ACK not received from the host CPU), the data are re-trans-
mitted in the next IN token (the same data are transmitted in the same toggle).
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
" to "00
2
" to "01
" when one of the data is transmitted, indicating that one more
2
2
" to "00
" when the data are transmitted, indicating that the IN FIFO becomes
2
2
"buffer data". The USB function control unit transmits the transmit data in sequence by one
packet size (the maximum packet size set in the EPxIMP). (When the last one packet is
smaller than the size set in the EPxIMP, it is received as a short packet.)
page 202 of 354
". In double buffer mode, they are updated as follows:
2
2. USB function

Advertisement

Table of Contents
loading

Table of Contents