![GigaDevice Semiconductor GD32E230F-START Скачать руководство пользователя страница 9](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e230f-start/gd32e230f-start_user-manual_2225796009.webp)
User Guide
GD32E230F-START
8
/
10
Learn to use TIMER to generate PWM
GD32E230F-START board has two keys and two LEDs. The two keys are Reset key and
User key. The LEDs are controlled by GPIO.
This demo will show how to use the TIMER PWM to trigger EXTI interrupt to toggle the
state of LED1 and EXTI interrupt line to control the LED2. When press down the User
Key, it will produce an interrupt. In the interrupt service function, the demo will toggle
LED2.
5.4.2
DEMO Running Result
Download the program < 04_TIMER_KeyBoard_EXTI > to the EVAL board, all the LEDs
are flashed once for test, press down the User Key, LED2 will be turned on. Press down
the User Key again, LED2 will be turned off. Connect PA6(TIMER2_CH0) and PA5 with
DuPont line. The LED1 will be toggled every 500ms.