1˵
    1ADCڲ¶ȴģѹתΪ¶ֵ 
2ʹû
		/* ǰʹõƼ汾 */
        IDEߣKEIL MDK-ARM 5.21.1.0

        /* Ӳ̶ӦĿӲƽ̨ */
        壺N32G05xCL-STB V1.0
3ʹ˵
    ϵͳã
        1ʱԴ
                    HSI=8M,AHB=64M,APB1=32M,APB2=64M,ADC CLK=64M/16,ADC 1M CLK=HSI/8
        2DMA
                    DMA_CH1ͨѭģʽһֵADCתADCConvertedValue
        3ADC
                    ADCת12λҶ룬תͨ16ڲ¶ȴģѹ
        4˿ã
                    PA9ѡΪUSART1TX
                    PA10ѡΪUSART1RX
        5USART
                    USART1 115200ʡ8λλ1λֹͣλżУλӲءͺͽʹ
        6ܺ
                    TempValue = TempCal(ADCConvertedValue)¶ADCԭʼʽתΪȵĵλĸʽ
    ʹ÷
        1򿪵ģʽADCConvertedValue,TempValueӵwatchڹ۲
        2ڹӵPA9ţ򿪴ڽչ
        3ȫУԿ¶ȱֵڳ½ӽ25ңͬʱڹʾʵʱоƬڵ¶ֵ

4ע
    


1. Function description
    1. ADC samples and converts the analog voltage of the internal temperature sensor and converts it to a temperature value

2. Use environment
    /* Software development environment: the name and version number of the software tool used in the current project */
    Software development environment: 
        KEIL MDK-ARM 5.21.1.0
    /* Hardware environment: the development hardware platform corresponding to the project */
    Hardware Environment: 
        Developed based on N32G05xCL-STB V1.0

3. Instructions for use
    System Configuration;
        1. Clock source:
                    HSI=8M,AHB=64M,APB1=32M,APB2=64M,ADC CLK=64M/16,ADC 1M CLK=HSI/8
        2. DMA:
                    DMA1_CH1 channel is configuered as circular mode, carries a half-word ADC conversion result to ADCConvertedValue variable
        3. ADC:
                    ADC configuration: continuous conversion, software trigger, 12-bit data right-aligned, conversion channel 16 is the analog voltage data of the internal temperature sensor
        4. Port configuration:
                    PA9 is selected as the TX pin of USART1
                    PA10 is selected as the RX pin of USART1
    Instructions:
        1. Open the debug mode after compiling, add the variables ADCConvertedValue, TempValue to the watch window for observation
        2. Connect the serial port tool to the PA9 pin and open the serial port receiving tool
        3. Running at full speed, you can see that the value of the temperature variable is close to about 25 degrees at room temperature, and the serial port tool displays the temperature value in the real-time chip

4. Matters needing attention
    None