GD32F20x User Manual
830
normal operation interrupts and the second vector is made up of WUM events for wakeup
which is mapped to the EXTI line 19.
All of the MAC and DMA controller interrupt are connected to the first interrupt vector. The
description for the MAC interrupt and DMA controller interrupt are showed behind.
The WUM block event is connected to the second interrupt vector. The event can be remote
wakeup frame received event or/and Magic Packet wakeup frame received event. This
interrupt is inner mapped on the EXTI line 19. So, if the EXTI line 19 is enabled and configured
to trigger by rising edge, the Ethernet WUM event can make the system exiting Deep-sleep
mode after a WUM event occurred. In addition, if the WUM interrupt is not masked, both the
EXTI line 19 interrupt and Ethernet normal interrupt to CPU are both generated.
Note:
Because of the WUM registers are designed in RX_CLK domain, clear these registers
by reading them will need a long time delay (depends on the frequency disparity between
HCLK and RX_CLK). To avoid entering the same event interrupt twice, it’s strongly
recommended that application polls the WUFR and MPKR bit until they reset to zero during
the interrupt service routine.
MAC interrupts
All of the MAC events can be read from ENET_MAC_INTF and each of them has a mask bit
for masking corresponding interrupt. The MAC interrupt is logical ORed of all interrupts.
Figure 27-11. MAC interrupt scheme
DMA controller interrupts
The DMA controller has two types of event: Normal and Abnormal.
No matter what type the event is, it has an enable bit (just like mask bit) to control the
generating interrupt or not. Each event can be cleared by writing 1 to it. When all of the events
are cleared or all of the event enable bits are cleared, the corresponding summary interrupt
bit is cleared. If both normal and abnormal interrupts are cleared, the DMA interrupt will be
cleared.
Below block diagram illustrates the Ethernet module interrupt connection:
WUM
WUMIM
TMST
TMSTI
WUMI
TMSTIM
MAC Interrupt
AND
AND
OR
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...