1˵
    1ADCתPB1 PB2 PB10 PB11 PB12ŵģѹ
    2ADCתͨDMA_CH1ͨȡADCConvertedValue
    
2ʹû

    KEIL MDK-ARM V5.34.0.0
    Ӳ 
        N32G05xϵУ
            N32G05xRBQ7_STB V1.0
        N32G05xϵУ
            N32G05xRBL7_STB V1.0

3ʹ˵
    ϵͳã
        1ʱԴ
            HSI=8M,AHB=64M,APB1=32M,APB2=64M,TIM =64M,DMA =64M, ADC CLK=64M/16,ADC 1M CLK=HSI/8
        2˿ã
            PB1ѡΪģ⹦ADCתͨ0
            PB2ѡΪģ⹦ADCתͨ1
            PB10ѡΪģ⹦ADCתͨ2
            PB11ѡΪģ⹦ADCתͨ3
            PB12ѡΪģ⹦ADCתͨ4
        3ADC
            TIM1_CC1¼ת12λҶ룬תPB1 PB2 PB10 PB11 PB12ģѹ
        4DMA
            DMA_CH1ͨģʽ5ֵADCתADCConvertedValue[5],ñͰЧ
    ʹ÷
        1򿪵ģʽADCConvertedValueӵwatchڹ۲
        2ͨıPB1 PB2 PB10 PB11 PB12ŵĵѹԿתͬı
4ע
    


1. Function description
    1. ADC samples and converts the analog voltage of PB1 PB2 PB10 PB11 PB12 pin
    2. ADC conversion result is read to variable ADCConvertedValue through DMA_CH1 channel

2. Use environment
    Software development environment: KEIL MDK-ARM V5.34.0.0
    Hardware development environment:
         N32G05x series:
            Developed based on the evaluation board N32G05xRBQ7_STB V1.0
         N32G05x series:
            Developed based on the evaluation board N32G05xRBL7_STB V1.0

3. Instructions for use
    System Configuration;
        1. Clock source:
            HSI=8M,AHB=64M,APB1=32M,APB2=64M,TIM =64M,DMA =64M, ADC CLK=64M/16,ADC 1M CLK=HSI/8
        2. Port configuration:
            PB1 is selected as analog function, ADC conversion channel 0
            PB2 is selected as analog function, ADC conversion channel 1
            PB10 is selected as analog function, ADC conversion channel 2
            PB11 is selected as analog function, ADC conversion channel 3
            PB12 is selected as analog function, ADC conversion channel 4
        3. ADC:
            ADC configuration: TIM1_CC1 event trigger, 12-bit data is right-aligned, and converts the analog voltage data of PB1 PB2 PB10 PB11 PB12
        4. DMA:
            DMA_CH1 channel is configuered as normal mode, carries 5 words of ADC conversion result to the ADCConvertedValue[5] variable.
            The variable is valid in the lower half of the word.
    Instructions:
        1. Open the debug mode after compiling and add the variable ADCConvertedValue[5] to the watch window for observation
        2. By changing the voltage of the PB1 PB2 PB10 PB11 PB12 pin, you can see that the conversion result variable changes synchronously

4. Matters needing attention
    none
