Fujitsu F2MC-16LX Hardware Manual page 322

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 13 USB FUNCTION
Host PC
Device
Device
Host PC
DMAE
DRQIE
DRQ
SIZE
DER(Enx)
In both OUT- direction and IN- direction transfer, a USB device must perform processes in the following
steps:
1. It sets the total number of pieces of data to be transferred in the data counter register DDCT in DMA
and enables DMA with the DER register.
2. DMAE and DRQIE, are permitting set.
3. Once transfer has been completed, it sets µDMAC again with an interrupt due to the corresponding
interrupt factor in the DSR register of µDMAC and clear the flag if necessary, and returns from the
interrupt process.
*:EP1 to EP5 consists of the double buffers, it can be cleared only when one buffer that is not being
accessed is empty and data is read from another buffer being accessed (Automatic clear) and cannot be
cleared if one buffer that is not being accessed has data left to be read. It continuously enters the DRQ
interrupt process.
306
Figure 13.4-11 OUT Direction (Host PC → Device) Forwarding
OUT packet
OUT
DATA0
Last OUT packet
OUT DATA1
DRQ flag *
ACK
Automatic
clear
DATA0
Read PKS part of
DMA receive buffer
DRQ flag *
Automatic
ACK
clear
DATA1
Read the rest of
DMA receive buffer

Advertisement

Table of Contents
loading

Table of Contents