GD32F403xx User Manual
10
16.3.2. Characteristics.......................................................................................................................................345
16.3.3. Block diagram........................................................................................................................................346
16.3.4. Function overview.................................................................................................................................347
16.3.5. TIMERx registers(x=8, 11)..................................................................................................................358
16.4. General level2 timer (TIMERx, x=9, 10, 12, 13)............................................................370
16.4.1. Overview.................................................................................................................................................370
16.4.2. Characteristics.......................................................................................................................................370
16.4.3. Block diagram........................................................................................................................................370
16.4.4. Function overview.................................................................................................................................372
16.4.5. TIMERx registers(x=9, 10, 12, 13)....................................................................................................379
16.5. Basic timer (TIMERx, x=5, 6).....................................................................................389
16.5.1. Overview.................................................................................................................................................389
16.5.2. Characteristics.......................................................................................................................................389
16.5.3. Block diagram........................................................................................................................................389
16.5.4. Function overview.................................................................................................................................389
16.5.5. TIMERx registers(x=5, 6)....................................................................................................................393
17. Universal synchronous/asynchronous receiver /transmitter (USART) ......... 398
17.1. Overview...............................................................................................................398
17.2. Characteristics....................................................................................................398
17.3. Function overview..............................................................................................399
17.3.1. USART frame format............................................................................................................................400
17.3.2. Baud rate generation...........................................................................................................................401
17.3.3. USART transmitter................................................................................................................................401
17.3.4. USART receiver....................................................................................................................................402
17.3.5. Use DMA for data buffer access........................................................................................................404
17.3.6. Hardware flow control..........................................................................................................................405
17.3.7. Multi-processor communication.........................................................................................................406
17.3.8. LIN mode................................................................................................................................................407
17.3.9. Synchronous mode..............................................................................................................................408
17.3.10. IrDA SIR ENDEC mode..................................................................................................................409
17.3.11. Half-duplex communication mode................................................................................................410
17.3.12. Smartcard (ISO7816-3) mode.......................................................................................................410
17.3.13. USART interrupts..............................................................................................................................412
17.4. Register definition ..................................................................................................414
17.4.1. Status register 0 (USART_STAT0)...................................................................................................414
17.4.2. Data register (USART_DATA)............................................................................................................416
17.4.3. Baud rate register (USART_BAUD).................................................................................................416
17.4.4. Control register 0 (USART_CTL0)....................................................................................................417
17.4.5. Control register 1 (USART_CTL1)....................................................................................................419
17.4.6. Control register 2 (USART_CTL2)....................................................................................................420
17.4.7. Guard time and prescaler register (USART_GP)..........................................................................422