User Guide
GD32E507Z-EVAL
19/43
you must send. The string that you have sent is stored in the rx_buffer array. The receive
buffer have a BUFFER_SIZE bytes as maximum. After that, compare tx_buffer with rx_buffer.
If tx_buffer is same with rx_buffer, LED1, LED2, LED3, LED4 flash by turns. Otherwise, LED1,
LED2, LED3, LED4 toggle together.
The output information via the HyperTerminal is as following:
5.7. ADC_Temperature_Vrefint
5.7.1. DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn to use the ADC to convert analog signal to digital data
Learn to get the value of inner channel 16(temperature sensor channel) and channel 17
(Vrefint channel)
5.7.2. DEMO running result
Download the program <07_ADC_Temperature_Vrefint> to the GD32E507Z-EVAL-V1.0
board. Connect serial cable to USART0, open the HyperTerminal.
When the program is running, HyperTerminal display the value of temperature and internal
voltage reference.
Notice: because there is an offset, when inner temperature sensor is used to detect accurate
temperature, an external temperature sensor part should be used to calibrate the offset error.