Rev. 2.00, 09/03, page 468 of 690
18.7
DMA Transfer
18.7.1
Overview
DMA transfer can be performed for endpoints 1 and 2 in this module. Note that word or longword
data cannot be transferred.
When endpoint 1 holds at least one byte of valid receive data, a DMA request for endpoint 1 is
generated. When endpoint 2 holds no valid data, a DMA request for endpoint 2 is generated.
If the DMA transfer is enabled by setting the EP1DMAE bit to 1 in the DMA transfer setting
register, zero-length data reception at endpoint 1 is ignored. When the DMA transfer is enabled,
the RDFN bit for EP1 and PKTE bit for EP2 do not need to be set to 1 in TRG (note that the
PKTE bit must be set to 1 when the transfer data is less than the maximum number of bytes).
When all the data received at EP1 is read, the FIFO automatically enters the EMPTY state. When
the maximum number of bytes (64 bytes) are written to the EP2 FIFO, the FIFO automatically
enters the FULL state, and the data in the FIFO can be transmitted (see figures 18.15 and 18.16).
18.7.2
DMA Transfer for Endpoint 1
When the data received at EP1 is transferred by the DMAC, the USB function module
automatically performs the same processing as writing 1 to the RDFN bit in TRG if the currently
selected FIFO becomes empty. Accordingly, in DMA transfer, do not write 1 to the RDFN bit in
TRG. If the user writes 1 to the RDFN bit in DMA transfer, correct operation cannot be
guaranteed.
Figure 18.15 shows an example of receiving 150 bytes of data from the host. In this case, internal
processing which is the same as writing 1 to the RDFN bit in TRG is automatically performed
three times. This internal processing is performed when the currently selected data FIFO becomes
empty. Accordingly, this processing is automatically performed both when 64-byte data is sent
and when data less than 64 bytes is sent.
RDFN
(Automatically
performed)
RDFN
(Automatically
performed)
RDFN
(Automatically
performed)
64 bytes
64 bytes
22 bytes
Figure 18.15 RDFN Bit Operation for EP1
Содержание SH7705
Страница 2: ......
Страница 46: ...Rev 2 00 09 03 page xlvi of xlvi Appendix Table A 1 I O Port States in Each Processing State 679 ...
Страница 70: ...Rev 2 00 09 03 page 24 of 690 ...
Страница 194: ...Rev 2 00 09 03 page 148 of 690 ...
Страница 284: ...Rev 2 00 09 03 page 238 of 690 ...
Страница 338: ...Rev 2 00 09 03 page 292 of 690 ...
Страница 354: ...Rev 2 00 09 03 page 308 of 690 ...
Страница 374: ...Rev 2 00 09 03 page 328 of 690 ...
Страница 420: ...Rev 2 00 09 03 page 374 of 690 ...
Страница 476: ...Rev 2 00 09 03 page 430 of 690 ...
Страница 482: ...Rev 2 00 09 03 page 436 of 690 ...
Страница 552: ...Rev 2 00 09 03 page 506 of 690 ...
Страница 630: ...Rev 2 00 09 03 page 584 of 690 ...
Страница 739: ...SH7705 Group Hardware Manual REJ09B0082 0200O ...