﻿1、功能说明
    1、ADC1采样转换PA4引脚的模拟电压，如果超过模拟看门狗1/2定义的阈值范围，则跳入中断程序

2、使用环境

    软件开发环境：KEIL MDK-ARM V5.34
			     IAR EWARM 8.50.1 

    芯片支持：
        N32H730  
        N32H735   
        N32H735EC
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787

3、使用说明
    系统配置；
        1、时钟源： HSI+PLL
        2、系统时钟频率：
             M7核:     600MHz
        3、端口配置：
            PA4选择为模拟功能
            
        4、ADC：
            ADC1独立工作模式、软件触发转换、12位数据右对齐，转换PA4的模拟电压数据

    使用方法：
        1、编译后打开调试模式，将变量gCntAwdg添加到watch窗口观察
        2、改变PA4引脚电压值，当电压值超出模拟看门狗1或者看门狗2定义的阈值范围外，则进入一次中断，变量做累加操作

4、注意事项
    无
    
1. Function description

    1, ADC1 samples and converts the analog voltage of the PA4 pin. If it exceeds the threshold range defined by the analog watchdog1/2, it will jump into the interrupt program.

2. Development environment

    Software development environment: KEIL MDK-ARM V5.34
			    					    IAR EWARM 8.50.1     
    Supported chips:
        N32H730  
        N32H735   
        N32H735EC
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787

3. How to use
   System Configuration:
        1. Clock source: HSI+PLL
        2. System Clock frequency: 
             M7 core :  600MHz
        3. Port configuration:
            PA4 is selected as the analog function
            
        4. ADC:
            ADC1 independent working mode, software-triggered conversion, 12-bit data is right-aligned, and analog voltage data of PA4 is converted.
    Instructions:
        1. After compiling, open the debug mode and add the variable gCntAwdg to the watch window to observe
        2. Change the voltage value of the PA4 pin. When the voltage value exceeds the threshold range defined by the analog watchdog1 or analog watchdog2 ,
           it will enter an interrupt and the variable will be accumulated.
4. Attention
    None

