﻿1、功能说明
    1、ADC1 ADC2规则通道同步采样，ADC1采样PA6、PA7引脚的模拟电压，ADC2采样PA4、PA5引脚的模拟电压
    2、同步转换的结果循环通过DMA1_CH0传输到ADC_DualConvertedValueTab[32]数组

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、端口配置：
            PA6选择为模拟功能
            PA7选择为模拟功能
            PA5选择为模拟功能
            PA4选择为模拟功能
            
        4、DMA：
            DMA1_CH0通道回环模式搬运32个字的ADC1转换结果到ADC_DualConvertedValueTab[32]数组
            
        5、ADC：
            ADC1规则通道同步规则通道模式、连续扫描模式、软件触发、12位数据右对齐，转换通道PA6和PA7的模拟电压数据
            ADC2规则通道同步规则通道模式、连续扫描模式、软件触发、12位数据右对齐，转换通道PA4和PA5的模拟电压数据

    使用方法：
        1、编译后将工程程序下载到开发板并复位运行,打开调试模式，将变量ADC_DualConvertedValueTab[32]添加到watch窗口观察
        2、全速运行前，在PA6、PA7、PA4、PA5给确定的电压信号，全速运行后，将连续转换结果到ADC_DualConvertedValueTab[32]数组
        
4、注意事项
    无
    
1. Function Description
    1. ADC1 and ADC2 regular channels sample synchronously; ADC1 samples the analog voltage from PA6 and PA7 pins, while ADC2 samples from PA4 and PA5 pins.
    2. The results of synchronous conversion are cyclically transferred to the ADC_DualConvertedValueTab[32] array via DMA1_CH0.

2. Development environment

    Software Development Environment: KEIL MDK-ARM V5.34
			                                            IAR EWARM 8.50.1 

    Chip Support:
        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:
       PA6 configured as analog function
       PA7 configured as analog function
       PA5 configured as analog function
       PA4 configured as analog function
       
    4. DMA:
    -  DMA1_CH0 channel loop mode transfers 32 words of ADC1 conversion results to the ADC_DualConvertedValueTab[32] array
    
    5. ADC:
       ADC1 regular channel in synchronous regular channel mode, continuous scan mode, software trigger, 12-bit data right aligned, converting analog voltage data from PA6 and PA7 channels
       ADC2 regular channel in synchronous regular channel mode, continuous scan mode, software trigger, 12-bit data right aligned, converting analog voltage data from PA4 and PA5 channels

    Usage:
        1. After compilation, download the project program to the development board, reset and run it, then open the debug mode and add the variable ADC_DualConvertedValueTab[32] to the watch window for observation.
        2. Before running at full speed, provide specific voltage signals to PA6, PA7, PA4, PA5. After running at full speed, the continuous conversion results will be stored in the ADC_DualConvertedValueTab[32] array.
        
4. Attention
    None

