M30245_06 RENESAS [Renesas Technology Corp], M30245_06 Datasheet - Page 198

no-image

M30245_06

Manufacturer Part Number
M30245_06
Description
RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/20 SERIES
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
M30245 Group
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
When an error is detected in bulk OUT transfer, a response is not returned without ACK and NAK
responses (Error checks such as CRC check and bit-justification, conforming to USB2.0 specifica-
tion, are automatically performed. So the error does not have to be controlled by software).
On receiving one packet data (Note 2), the received packet data (Note 2) from OUT FIFO is read.
Fetch one packet data (Note 2) in the following procedure:
1: Confirm that there are receive data in the OUT FIFO by the statuses of the OUT_BUF_STS1 and
2: Determine the data byte count to be read from the OUT FIFO by reading USB endpoint x(x=1 to
3: Read the data byte count determined in the above 2: from the OUT FIFO.
4: Set CLR_OUT_BUF_RDY bit to “1” to complete one receive packet data fetch (Note 2).
Note 2: In continuous transfer enable, read the description by substituting the underlined part with
Fetch of Receive Data
When one packet data (Note 2) is read from the OUT FIFO while the AUTO_CLR function is en-
OUT_BUF_STS0 flags.
4) OUT write count register .
Every time that 1(2)-byte data are read from the OUT FIFO, the internal write pointer is automati-
cally decremented by one(two). (Content of the internal write pointer cannot be read.)
enabling a receive of the next one packet data (Note 2).
abled (AUTO_CLR bit is “1”), the OUT_BUF_STS1 and OUT_BUF_STS0 flags are automatically
updated without CLR_OUT_BUF_RDY bit being set to “1”.
At this time, the OUT FIFO status (OUT_BUF_STS1 and OUT_BUF_STS0 flags) are updated,
•In Single Buffer Mode
•In Double Buffer Mode
The OUT_BUF_STS1 and OUT_BUT_STS0 flags are updated from “11
“00
OUT_BUF_STS1 flags are updated from “11
OUT FIFO). In this case, the second packet data (Note 2) can be continuously fetched.
OUT_BUF_STS1 flags are updated from “10
FIFO empty).
When there are one more packet data (Note 2) in the OUT FIFO, the OUT_BUF_STS1 and
When there are no data packet does in the OUT FIFO, the OUT_BUF_STS1 and
2
” (the OUT FIFO empty).
“buffer data”. On receiving one buffer full (data equal to byte count set in the BUF_SIZ) or a
short packet, one buffer data receive is completed. Also, the BUF_SIZ has to be equal to an
integral multiple of the EPxOMP.
page 189 of 354
2
2
” (one data set in the OUT FIFO) to “00
” (the OUT FIFO full) to “10
2
” (the OUT FIFO full) to
2
” (one data set in the
2. USB function
2
” (the OUT

Related parts for M30245_06