1˵
    1ADCͨPA4PA5ŵģѹעͨPA0PA1ŵģѹ
    2йתͨDMA_CH1ͨȡADC_RegularConvertedValueTab[64]
           עתͨתж϶ȡADC_InjectedConvertedValueTab[32]
2ʹû
      KEIL MDK-ARM V5.30.0.0
    Ӳ      N32G031C8L7-STB V1.0
3ʹ˵
    ϵͳã
        1ʱԴ
                    HSE=8M,PLL=48M,AHB=48M,APB1=48M,APB2=48M,ADC CLK=48M/16,ADC 1M CLK=HSI/8,DMA CLK=48M
        2жϣ
                    ADCעתжϴ򿪣ȼ0
                    жϴעתADC_InjectedConvertedValueTab[32]
        3˿ã
                    PA4ѡΪģ⹦ADCתͨ
                    PA5ѡΪģ⹦ADCתͨ
                    PA0ѡΪģ⹦ADCתͨ
                    PA1ѡΪģ⹦ADCתͨ
                    PA9ѡΪⲿEXTI¼ش
                    PA10ѡΪⲿEXTI¼ش
        4DMA
                    DMA_CH1ͨѭģʽ64ֵADCͨתADC_RegularConvertedValueTab[64]
        5ADC
                    ADCͨɨģʽEXTI912λҶ룬תͨPA4PA5ģѹ
                    ADCעͨɨģʽEXTI1012λҶ룬תͨPA0PA1ģѹ
    ʹ÷
        1򿪵ģʽADC_RegularConvertedValueTab[64],ADC_InjectedConvertedValueTab[32]ӵwatchڹ۲
        2ͨPA9ؿԴͨݲPA10ؿԴעͨݲ
4ע
    ϵͳHSEʱʱһHSIҲǴ򿪵ģRCC_ConfigAdc1mClk(RCC_ADC1MCLK_SRC_HSE, RCC_ADC1MCLK_DIV8)ΪHSEHSI
    ϵͳHSIʱʱһHSEǹرյģRCC_ConfigAdc1mClk(RCC_ADC1MCLK_SRC_HSI, RCC_ADC1MCLK_DIV8)ֻΪHSI


1. Function description
    1. The ADC regular channel samples the analog voltage of the PA4 and PA5 pins, and the injection channel samples the analog voltage of the PA0 and PA1 pins.
    2. The regular conversion result is read into the variable ADC_RegularConvertedValueTab[64] array through the DMA_CH1 channel
           The result of the injection conversion is read into the variable ADC_InjectedConvertedValueTab[32] array through the conversion end interrupt

2. Use environment
    Software development environment: KEIL MDK-ARM V5.30.0.0
    Hardware environment: Developed based on the development board N32G031C8L7-STB V1.0

3. Instructions for use
    System Configuration;
        1. Clock source:
                    HSE=8M, PLL=48M, AHB=48M, APB1=48M, APB2=48M, ADC CLK=48M/16, ADC 1M CLK=HSI/8, DMA CLK=48M
        2. Interrupt:
                    ADC injection conversion result completion interrupt is turned on, priority level 0
                    Interrupt handling receives the injected conversion result into the ADC_InjectedConvertedValueTab[32] array
        3. Port configuration:
                    PA4 is selected as the analog function, ADC conversion channel
                    PA5 is selected as the analog function, ADC conversion channel
                    PA0 is selected as the analog function, ADC conversion channel
                    PA1 is selected as the analog function, ADC conversion channel
                    PA9 is selected as external EXTI event rising edge trigger
                    PA10 is selected as external EXTI event rising edge trigger
        4. DMA:
                    DMA1_CH1 channel is configured as circular mode, carries 64 half-word ADC regular channel conversion results to ADC_RegularConvertedValueTab[64] array
        5. ADC:
                    ADC regular channel scan discontinuous mode, EXTI9 trigger, 12-bit data right-aligned, conversion of analog voltage data of channels PA4 and PA5
                    ADC injection channel scan mode, EXTI10 trigger, 12-bit data right-aligned, conversion of analog voltage data of channels PA0 and PA1
    Instructions:
        1. Open the debug mode after compiling, add the variables ADC_RegularConvertedValueTab[64], ADC_InjectedConvertedValueTab[32] to the watch window for observation
        2. The regular channel data sampling can be triggered by the rising edge of PA9, and the data sampling of the injected channel can be triggered by the rising edge of PA10.

4. Matters needing attention
    When the system uses the HSE clock (HSI is generally enabled), ), RCC_ConfigAdc1mClk (RCC_ADC1MCLK_SRC_HSE, RCC_ADC1MCLK_DIV8) can be configured as HSE or HSI
    When the system uses the HSI clock(HSE is generally disabled), RCC_ConfigAdc1mClk(RCC_ADC1MCLK_SRC_HSI, RCC_ADC1MCLK_DIV8) can only be configured as HSI