Fujitsu F2MC-16LX Hardware Manual page 323

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

Advertisement

Figure 13.4-12 IN Direction (Device → Host PC) Forwarding
Host PC
Device
DRQ flag *
Device
Automatic
Host PC
clear
DMAE
DRQIE
DRQ
DATA0
DER(Enx)
Write PKS part of
DMA sending buffer
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 has already data written into it and data is written into another buffer that is being accessed and
cannot be cleared when one buffer that is not being accessed is empty. It continuously enters the DRQ
interrupt process.
Data
IN
ACK
DRQ flag *
Automatic
DATA0
clear
DATA1
Write the rest of
DMA sending buffer
CHAPTER 13 USB FUNCTION
Last data
IN
ACK
DATA1
307

Advertisement

Table of Contents
loading

Table of Contents