User Guide
GD32E230C-EVAL
16 /24
The information via a serial port output as following:
5.7. ADC_Conversion_Triggered_By_Timer
5.7.1. DEMO Purpose
This Demo includes the following functions of GD32 MCU:
Learn to use ADC to convert analog to digital
Learn to use TIMER to generate a channel compare event
Learn to use LCD to show the ADC converted result
TIMER0 CH0 event triggers ADC conversion, the value displayed on the LCD
corresponds to the ADC analog input, and changes with it. The converted data are
moved to SRAM through DMA continuously.
5.7.2. DEMO Running Result
Download the program <07_ADC_conversion_triggered_by_timer> to the
GD32E230C-EVAL board, adjust the adjustable potentiometer knob to change the
analog input. The ADC, which is triggered by TIMER0 CH0 event, will convert the analog
input, and you will see the result, a voltage curve, on the LCD. The curve adjusts with
the analog input.
5.8. Comparator_Obtain_Brightness
5.8.1. DEMO Purpose
This Demo includes the following functions of GD32 MCU:
Learn to use comparator output compare result
There are two comparators on EVAL board and each comparator has two inputs. In this
demo, one input is 3.3V, and the other one is the 1/4 reference voltage. Compare the
two input voltages, the output is a high or low level, and the LED2 will performs the
corresponding action.
5.8.2. DEMO Running Result
Download the program <08_Comparator_obtain_brightness> to the EVAL board,