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