1、功能说明
    1、ADC采样转换PA1引脚的模拟电压，如果超过模拟看门狗定义的阈值范围，则跳入中断程序
2、使用环境
    
       软件开发环境：  
          IDE工具：KEIL MDK-ARM V5.34.0.0
                         IAR EWARM 8.50.1

       硬件环境：      
          开发板：N32G430C8L7-STB V1.0

3、使用说明
    系统配置；
        1、时钟源：
            HSE=8M,PLL=128M,AHB=128M,APB1=32M,APB2=64M,ADC CLK=128M/16,ADC 1M CLK=HSE/8
        2、ADC：
            ADC连续转换、软件触发、12位数据右对齐，转换PA1引脚的模拟电压数据
        3、端口配置：
            PC2选择为模拟功能ADC转换通道2
        4、中断：
            ADC模拟看门狗中断打开，中断优先级分组2，抢断优先级0，子优先级0
    使用方法：
        1、编译后打开调试模式，将变量gCntAwdg添加到watch窗口观察
        2、改变PA1引脚电压值，当电压值超出模拟看门狗定义的0x300到0xB00范围外，则进入一次中断，变量做累加操作
4、注意事项
    当系统采用HSE时钟时（一般HSI也是打开的），RCC_ConfigAdc1mClk(RCC_ADC1MCLK_SRC_HSE, RCC_ADC1MCLK_DIV8)可以配置为HSE或者HSI
    当系统采样HSI时钟时（一般HSE是关闭的），RCC_ConfigAdc1mClk(RCC_ADC1MCLK_SRC_HSI, RCC_ADC1MCLK_DIV8)只能配置为HSI



1. Function description
    1. ADC samples and converts the analog voltage of PA1 pin. If it exceeds the threshold
    range defined by the analog watchdog, it will jump into the interrupt program
2. Use environment
    Software development environment:   KEIL MDK-ARM V5.34.0.0
                                                                IAR EWARM 8.50.1
    Hardware environment: 
        the evaluation board:   N32G430C8L7-STB V1.0

3. Instructions for use
    System configuration：
       1. Clock source:
            HSE=8M,PLL=128M,AHB=128M,APB1=32M,APB2=64M,ADC CLK=128M/16,ADC 1M CLK=HSE/8 
       2. the ADC:
            ADC continuous conversion, software triggered, 12 bit data right aligned, conversion of PA1 pin 
            analog voltage data
       3. Port Configuration:
           PA1 is selected as the analog function ADC conversion channel 2
       4. Interruption:
           ADC simulates watchdog interrupt open, the priority group 2, preemption priority 0, sub priority 0
    Usage:
       1. After compiling, open the debugging mode and add the variable gCntAwdg to the Watch window 
           for observation.
       2. Change the PA0 pin voltage value. When the voltage value exceeds the range of 0x300 to 0xB00 
          defined by the analog watchdog, an interrupt will be entered and the variables will be accumulated.
4. Precautions
       When the system uses the HSE clock (HSI is also normally turned on), RCC_ConfigAdc1mClk(RCC_ADC1MCLK_SRC_HSE, 
       RCC_ADC1MCLK_DIV8)can be configured as HSE or HSI.
       When the system samples the HSI clock (generally, HSE is disabled), RCC_ConfigAdc1mClk(RCC_ADC1MCLK_SRC_HSI, 
       RCC_ADC1MCLK_DIV8) can only be set to HSI.