EasyManua.ls Logo

GigaDevice Semiconductor GD32450Z-EVAL - ADC Temperature and Vrefint Demo

Default Icon
53 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
User Guide
GD32450Z-EVAL
23
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), channel 17
(VREFINT channel) and channel 18(VBAT/4 channel)
5.7.2. DEMO running result
Jump the JP13 to USART with the jumper cap, and then download the program
<07_ADC_Temperature_Vrefint_Vbat> to the board. Connect serial cable to COM0, open
the HyperTerminal.
When the program is running, HyperTerminal display the value of temperature, internal
voltage reference (VREFINT) and external battery voltage VBAT.
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.