GD32F1x0 User Manual
5
6.3.8. GPIO locking function ......................................................................................................... 145
6.3.9. GPIO single cycle toggle function....................................................................................... 145
6.4. Register definition................................................................................................... 146
6.4.1. Port control register (GPIOx_CTL, x=A..D,F) ..................................................................... 146
6.4.2. Port output mode register (GPIOx_OMODE, x=A..D,F) ..................................................... 147
6.4.3. Port output speed register (GPIOx_OSPD, x=A..D,F)........................................................ 149
6.4.4. Port pull-up/down register (GPIOx_PUD, x=A..D,F)........................................................... 151
6.4.5. Port input status register (GPIOx_ISTAT, x=A..D,F) ........................................................... 152
6.4.6. Port output control register (GPIOx_OCTL, x=A..D,F) ....................................................... 153
6.4.7. Port bit operate register (GPIOx_BOP, x=A..D,F)............................................................... 153
6.4.8. Port configuration lock register (GPIOx_LOCK, x=A, B) .................................................... 154
6.4.9. Alternate function selected register0 (GPIOx_AFSEL0, x=A, B, C) ................................... 155
6.4.10. Alternate function selected register1 (GPIOx_AFSEL1, x=A,B,C) ..................................... 156
6.4.11. Bit clear register (GPIOx_BC, x=A..D,F) ............................................................................ 157
6.4.12. Port bit toggle register (GPIOx_TG, x=A..D,F) (Only for GD32F170xx and GD32F190xx
devices) 158
7. Cyclic redundancy checks management unit (CRC) ........................................159
7.1. Overview .................................................................................................................. 159
7.2. Characteristics......................................................................................................... 159
7.3. Function overview................................................................................................... 160
7.4. Register definition................................................................................................... 162
7.4.1. Data Register (CRC_DATA)................................................................................................ 162
7.4.2. Free Data Register (CRC_FDATA)..................................................................................... 162
7.4.3. Control Register (CRC_CTL).............................................................................................. 163
7.4.4. Initialization Data Register (CRC_IDATA)........................................................................... 163
8. Direct memory access controller (DMA)............................................................165
8.1. Overview .................................................................................................................. 165
8.2. Characteristics......................................................................................................... 165
8.3. Block diagram.......................................................................................................... 166
8.4. Function overview................................................................................................... 166
8.4.1. DMA operation .................................................................................................................... 166
8.4.2. Peripheral handshake......................................................................................................... 168
8.4.3. Arbitration............................................................................................................................ 168
8.4.4. Address generation............................................................................................................. 169
8.4.5. Circular mode...................................................................................................................... 169
8.4.6. Memory to memory mode................................................................................................... 169
8.4.7. Channel configuration......................................................................................................... 169
8.4.8. Interrupt............................................................................................................................... 170
8.4.9. DMA request mapping ........................................................................................................ 171