GD32A50x User Manual
6
8.3.1. GPIO pin configuration ....................................................................................................... 179
8.3.2. External interrupt/event lines .............................................................................................. 179
8.3.3. Alternate functions (AF) ...................................................................................................... 179
8.3.4. Additional functions............................................................................................................. 179
8.3.5. Input configuration .............................................................................................................. 180
8.3.6. Output configuration ........................................................................................................... 180
8.3.7. Analog configuration ........................................................................................................... 181
8.3.8. Alternate function (AF) configuration .................................................................................. 181
8.3.9. GPIO locking function ......................................................................................................... 182
8.3.10. GPIO single cycle toggle function....................................................................................... 182
8.4. Register definition........................................................................................................ 183
8.4.1. Port control register (GPIOx_CTL, x=A..F)......................................................................... 183
8.4.2. Port output mode register (GPIOx_OMODE, x=A..F)......................................................... 185
8.4.3. Port output speed register (GPIOx_OSPD, x=A..F) ........................................................... 186
8.4.4. Port pull-up/down register (GPIOx_PUD, x=A..F) .............................................................. 188
8.4.5. Port input status register (GPIOx_ISTAT, x=A..F)............................................................... 190
8.4.6. Port output control register (GPIOx_OCTL, x=A..F) ........................................................... 190
8.4.7. Port bit operate register (GPIOx_BOP, x=A..F) .................................................................. 190
8.4.8. Port configuration lock register (GPIOx_LOCK, x=A..F) .................................................... 191
8.4.9. Alternate function selected register 0 (GPIOx_AFSEL0, x=A..F) ....................................... 192
8.4.10. Alternate function selected register 1 (GPIOx_AFSEL1, x=A..F) ....................................... 193
8.4.11. Bit clear register (GPIOx_BC, x=A..F) ................................................................................ 194
8.4.12. Port bit toggle register (GPIOx_TG, x=A..F)....................................................................... 195
9. Multi-function communication Interface (MFCOM) ...........................................196
9.1. Overview ....................................................................................................................... 196
9.2. Characteristics............................................................................................................. 196
9.3. Block diagram .............................................................................................................. 196
9.4. Function overview........................................................................................................ 197
9.4.1. Clocking and resets ............................................................................................................ 197
9.4.2. Shifter.................................................................................................................................. 197
9.4.3. Timer ................................................................................................................................... 199
9.4.4. Pin....................................................................................................................................... 201
9.4.5. Interrupts and DMA requests .............................................................................................. 202
9.4.6. Triggers ............................................................................................................................... 202
9.4.7. Typical configuration of application..................................................................................... 203
9.5. Register definition........................................................................................................ 213
9.5.1. Control register (MFCOM_CTL) ......................................................................................... 213
9.5.2. Pin data register (MFCOM_PINDATA) ............................................................................... 213
9.5.3. Shifter status register (MFCOM_SSTAT)............................................................................ 214
9.5.4. Shifter error register (MFCOM_SERR)............................................................................... 214
9.5.5. Timer status register (MFCOM_TMSTAT) .......................................................................... 215