1˵
    1ADCתPB1 PB2ŵģѹ
    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,APB2=64M,APB1=32M,ADC CLK=64M/16,ADC 1M CLK=HSI/8 
        2˿ã
            PB1ѡΪģ⹦ADCתͨ0
            PB2ѡΪģ⹦ADCתͨ1
        3ADC
            ADCת12λҶ룬תPB1 PB2ģѹ
    ʹ÷
        1򿪵ģʽADCConvertedValueӵwatchڹ۲
        2ͨıPB1 PB2ŵĵѹԿתͬı
4ע
    



1. Function description
    1. ADC samples and converts the analog voltage of PB1 PB2 pin
    2. Use software to trigger once and collect once

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/24
        2. Port configuration:
            PB1 is selected as analog function, ADC conversion channel 0
            PB2 is selected as analog function, ADC conversion channel 1
        3. ADC:
            ADC configuration: software trigger, 12-bit data is right-aligned, and converts the analog voltage data of PB1 PB2 
    Instructions:
        1. Open the debug mode after compiling and add the variable ADCConvertedValue to the watch window for observation
        2. By changing the voltage of the PB1 PB2 pin, you can see that the conversion result variable changes synchronously

4. Matters needing attention
    None