User Guide
GD32E507Z-EVAL
30/43
5.22. SHRTIMER_TIMER_Breath_LED
5.22.1. DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn to use TIMER and SHRTIMER output PWM wave
Learn to update channel value
5.22.2. DEMO running result
Use the DuPont line to connect the TIMER0_CH0 (PA8) and LED1 (PG10). Use the DuPont
line to connect the SHRTIMER_ST0CH1 (PA9) and LED2 (PG11). Then download the
program <22_SHRTIMER_TIMER_Breath_LED> to the EVAL board and run. PA8 should not
be reused by other peripherals and JP13 do not use jumper caps.
When the program is running, you can see LED1 and LDE2 lighting from dark to bright
gradually and then gradually darken, ad infinitum, just like breathing as rhythm.
5.23. TMU_calculation
5.23.1. DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn to use TMU operation mode for calculation
Learn to use USART module to communicate with the HyperTerminal
5.23.2. DEMO running result
This demo is based on the GD32E507Z-EVAL-V1.0 board, download the program