English
Language : 

EFM32WG Datasheet, PDF (258/834 Pages) List of Unclassifed Manufacturers – The EFM32WG Wonder Gecko is the ideal choice for demanding 8-, 16-, and 32-bit energy sensitive applications.
...the world's most energy friendly microcontrollers
Figure 15.12. Normal Bulk/Control OUT/SETUP and Bulk/Control IN Transactions in Slave Mode
init_reg( ch_2)
set_ch_en
(ch_2)
set_ch_en
(ch_2)
Applicat ion
1
i n i t_ r e g(c h_1)
1
writ e_t x_fifo
( ch_1)
2
2
writ e_t x_fifo
( ch_1)
5
AHB
1
MPS
1
MPS
set_ch_en
(ch_2)
H ost
4
3
ch_1
ch_2
ch_1
ch_2
3
USB
D e v ice
Non-Periodic Request
Queue
Assum e that this queue can
hold 4 entries.
OUT
DAT A0
MPS
ACK
IN
5
read_rx_st s
r e a d_ r x_ f i f o
set_ch_en
(ch_2)
RXFLVL int errupt
1
MPS
7
De- allocat e
( ch_1)
XFERCOMPL int errupt
4
ch_1
ch_2
ch_2
ch_2
6
DAT A0
ACK
O UT
DAT A1
MPS
ACK
IN
read_rx_st sre
a d_ r x_ f i f o
read_rx_st s
7
Disable
(ch_2)
9
read_rx_st s
11
De- allocat e
(ch_2)
13
RXFLVL int errupt
1
MPS
RXFLVL int errupt
XFERCOMPL int errupt
RXFLVL int errupt
CHHLTD int errupt
6
8
ch_2
10
12
DAT A1
ACK
15.4.3.6.4.2 Handling Interrupts
The channel-specific interrupt service routine for bulk and control OUT/SETUP transactions in Slave
mode is shown in the following code samples.
Interrupt Service Routine for Bulk/Control OUT/SETUP Transactions in Slave Mode
Bulk/Control OUT/SETUP
Unmask (NAK/XACTERR/STALL/XFERCOMPL)
if (XFERCOMPL)
{
Reset Error Count
Mask ACK
De-allocate Channel
}
else if (STALL)
2013-05-08 - Wonder Gecko Family - d0233_Rev0.50
258
www.energymicro.com