User Manual
GD32350R-EVAL
31 /33
This demo includes the following functions of GD32 MCU:
Learn how to use the USBFS peripheral
Learn how to implement USB CDC device
EVAL board has one USBFS interface. In this demo, the EVAL board is enumerated as
an USB virtual COM port, which was shown in device manager of PC as below. This
demo makes the USB device look like a serial port, and loops back the contents of a text
file over USB port. To run the demo, input a message using the PC's keyboard. Any data
that shows in HyperTerminal is received from the device.
DEMO Running Result
Download the program <23_USB_Device\CDC_ACM> to the EVAL board and run.
When you input message through computer keyboard, the HyperTerminal will receive
and shown the message. For example, when you input “GigaDevice MCU”, the
HyperTerminal will get and show it as below.
5.23.2.
USBD_Keyboard
DEMO Purpose
This demo includes the following functions of GD32 MCU:
Learn how to use the USBFS peripheral mode
Learn how to implement USB HID(human interface) device
EVAL board has four keys and one USB_FS interface. The five keys are Reset key,
Wakeup key, Tamper key and User key. In this demo, the EVAL board is enumerated as
an USB Keyboard, which uses the native PC Host HID driver, as shown below. The USB
Keyboard uses three keys(wakeup key, tamper key and user key) to output three