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

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
(2) DMA Request by Endpoint x OUT
When endpoint 1 to 4 OUT FIFO write request select bit is set to the DMA request factor origin of
USB0/USB1/USB2/USB3, the DMA request factor includes the following three kinds. On occurrence
of an event when all the specified conditions have been satisfied for each factor, the DMA request of
DMA0/DMA1/DMA2/DMA3 occurs.
•Factor 1
•Factor 2
•Factor 3
The DMA request factor of USB0/USB1/USB2/USB3 corresponds to read from the endpoints 1 to 4
OUT FIFO (Factor 3). Therefore, with endpoint x OUT FIFO being specified to the DMA source pointer
and the transfer source address direction being fixed, when DMA transfer is executed by Factor 1
(Factor 2 or Factor 3), Factor 3 occurs. Therefore, when one buffer data (one packet data) is read from
OUT FIFO by DMA transfer, it is possible that the 1st byte (1st word) data is DMA transferred by
Factor 1 (Factor 2 or Factor 3) and the other data, starting from the 2nd byte (2nd word) up to the last
byte (last word), are DMA transferred by Factor 3.
For details of DMA transfer, refer to “Chapter 2. DMAC”.
DMA Request Factors
Reading of Endpoint x OUT FIFO in DMA Transfer
Conditions:
Event:
Conditions:
Event:
Conditions:
Event:
- DMA enable bit of DMAi control register is set to “1” (enable).
- Any one of endpoint x(x=1 to 4) OUT FIFO read request select bit in USB DMAx(x=0 to 3)
- DMA enable bit of DMAi control register is set to “1” (enable).
- The OUT_BUF_STS1 and OUT_BUF_STS0 flags of endpoint x OUT which is set in USB
- There is no selection of USB DMAx(x=0 to 3) request register (“00
- DMAenable bit of DMAi control register is set to “1” (enable).
- The OUT_BUF_STS1 and OUT_BUF_STS0 flags of endpoint x OUT which is set in USB
- Any one of endpoint x(x=1 to 4) OUT FIFO read request select bit in USB DMAx(x=0 to 3)
request register is set to “1”. The other bits are set to “0” (valid setting).
The OUT FIFO state of the endpoint x OUT which is set in USB DMAx(x=0 to 3) request register
has been updated, and the OUT_BUF_STS1 and OUT_BUF_STS0 flags are set to “11
time of single buffer and “10
received in OUT FIFO. At this time, when one packet receive is completed, the endpoint x OUT
interrupt request simultaneously occurs.)
DMAx(x=0 to 3) request register are set to “10
received in OUT FIFO.)
Any one of endpoint x(x=1 to 4) OUT FIFO read request select bit in USB DMAx(x=0 to 3)
request register is set to “1”. The other bits are set to “0” (valid setting).
DMAx(x=0 to 3) request register are set to “10
received in OUT FIFO.)
request register is set to “1”. The other bits are set to “0” (valid setting).
1-byte (1-word) data is read from the endpoint x OUT FIFO which is set in USB DMAx(x=0 to 3)
request register .
page 208 of 354
2
” at the time of double buffer. (When data of one or more buffers are
2
2
” or “11
” or “11
2
2
”. (When data of one or more packets are
”. (When data of one or more packets are
16
”).
2. USB function
2
” at the

Related parts for M30245_06