...the world's most energy friendly microcontrollers
2016-04-28 - Giant Gecko Family - d0053_Rev1.20
276
www.silabs.com
Figure 15.16. Normal Interrupt OUT/IN Transactions in DMA Mode
D ATA1
MPS
Host
Application
Device
AHB
USB
OUT
DATA0
MPS
1
MPS
1
MPS
init_ reg( ch_1)
init_ reg( ch_2)
ch_2
ch_1
IN
OUT
Periodic Request
Queue
Assum e t hat t his
queue can hold
4 ent ries.
1
DATA0
IN
1
MPS
1
2
3
5
ch_1
2
4
5
init_ reg( ch_1)
init_ reg( ch_2)
init_ reg( ch_1)
1
MPS
DATA1
ch_2
4
3
A CK
ACK
ACK
Odd
fram e
Even
fram e
CHHLTD int errupt
CHHLTD int errupt
CHHLTD int errupt
15.4.3.6.11.2 Handling Interrupts
The following code sample shows the channel-specific ISR for an interrupt OUT transaction in DMA
mode.
Interrupt OUT
Unmask (CHHLTD)
if (CHHLTD)
{
if (XFERCOMPL)
{
Reset Error Count
Mask ACK
if (Transfer Done)
{
De-allocate Channel
}
else
{
Summary of Contents for Giant Gecko EFM32GG
Page 842: ......