Download M3 32-bit MCU User Manual

Transcript
GD32F10x User Manual
7.4.
EXTI registers ...................................................................................................................... 182
7.4.1.
Interrupt enable register (EXTI_IER) ........................................................................................... 182
7.4.2.
Event enable register (EXTI_EER) .............................................................................................. 182
7.4.3.
Rising edge trigger enable register (EXTI_RTE) ....................................................................... 183
7.4.4.
Falling edge trigger enable register (EXTI_FTE) ....................................................................... 183
7.4.5.
Software interrupt event register (EXTI_SIE) ............................................................................. 184
7.4.6.
Pending register (EXTI_PD).......................................................................................................... 184
8. Direct memory access controller (DMA) ............................................................ 185
8.1.
Introduction ........................................................................................................................ 185
8.2.
Main features ..................................................................................................................... 185
8.3.
Function description ........................................................................................................... 186
8.3.1.
DMA transfers .................................................................................................................................. 186
8.3.2.
Arbitration among channels .......................................................................................................... 187
8.3.3.
Next address generation algorithm .............................................................................................. 187
8.3.4.
Circulation mode ............................................................................................................................. 187
8.3.5.
Memory to memory mode.............................................................................................................. 187
8.3.6.
Interrupt requests ............................................................................................................................ 187
8.3.7.
DMA channel configuration procedure ........................................................................................ 188
8.3.8.
DMA Request Mapping .................................................................................................................. 188
8.4.
DMA registers ..................................................................................................................... 191
8.4.1.
DMA interrupt status register (DMA_IFR) ................................................................................... 191
8.4.2.
DMA interrupt flag clear register (DMA_ICR) ............................................................................. 192
8.4.3.
DMA channel x control register (DMA_CTLRx).......................................................................... 192
8.4.4.
DMA channel x remain counter (DMA_RCNTx) ......................................................................... 194
8.4.5.
DMA channel x peripheral base address register (DMA_PBARx)........................................... 194
8.4.6.
DMA channel x memory base address register (DMA_MBARx) ............................................. 195
9. Timer (TIMERx)..................................................................................................... 196
9.1.
Advanced timer (TIMER 1 and TIMER8) ............................................................................... 197
9.1.1.
Introduction ...................................................................................................................................... 197
9.1.2.
Main features ................................................................................................................................... 197
9.1.3.
Function description ....................................................................................................................... 197
9.1.4.
TIMER1 /TIMER8registers ............................................................................................................ 226
9.2.
General timers (TIMER2 to TIMER5) .................................................................................... 249
9.2.1.
Introduction ...................................................................................................................................... 249
9.2.2.
Main features ................................................................................................................................... 249
9.2.3.
Function description ....................................................................................................................... 249
9.2.4.
TIMER2 to TIMER5 registers ........................................................................................................ 270
9.3.
Basic timer (TIMER6 and TIMER7) ....................................................................................... 288
9.3.1.
Introduction ...................................................................................................................................... 288
9.3.2.
Main features ................................................................................................................................... 288
5