1˵
    1ADCͨPB1PB2ŵģѹ
    2תжжȡת
    
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,ADC CLK=64M/16,ADC 1M CLK=HSI/8
        2жϣ
            ADCתɽжϣжȼ0
            жϴתADCConvertedValue[5]飬תPA6ƽ
        3˿ã
            PB1ѡΪģ⹦
            PB2ѡΪģ⹦
            PA7ѡΪⲿEXTI¼ش
            PA6ѡΪͨIO
            PB8ѡΪͨIO
        4ADC
            ADCͨɨģʽEXTI712λҶ룬תͨPB1PB2ģѹ
    ʹ÷
        1򿪵ģʽADCConvertedValue[5]ӵwatchڹ۲
        2PA7PB8,ͨʾɹ۲죬PA7ؿԴͨݲ;
    
4ע
    


1. Function description
    1. The ADC regular channel samples the analog voltage of the PB1 and PB2 pins.
    2. Read the conversion result in the conversion completion interrupt.

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,ADC CLK=64M/16,ADC 1M CLK=HSI/8
        2. Interrupt:
            ADC regular conversion result completion will enter interrupt function, interrupt priority level set to 0.
            In the interrupt function,the regular result is read into the ADCConvertedValue[5] array, and flips PA6 level.
        3. Port configuration:
            PB1 is selected as the analog function
            PB2 is selected as the analog function
            PA7 is selected as external EXTI event rising edge trigger
            PA6 is selected as general IO output
            PB8 is selected as general IO output
        4. ADC:
            ADC regular channel scan mode, EXTI3 trigger, 12-bit data right-aligned, conversion of analog voltage data of channels PB1 and PB2
    Instructions:
        1. Open the debug mode after compiling, add the variables ADCConvertedValue[5] to the watch window for observation
        2. PA7 connects to PB8, through the oscilloscope can be observed, the rising edge of PA7 can be triggered by the regular channel data sampling.


4. Matters needing attention
    None