1、功能说明

    该测例演示了两块开发板USARTz间通过中断实现的基础通信。
    Master发送TxBuffer2数据至Slave，USARTz接收数据存至RxBuffer2。
    比较接收数据与发送数据，比较结果存入TransferStatus变量。


2、使用环境

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

    芯片支持：
        N32H730  
        N32H735   
        N32H735EC
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787 
    开发板支持：
        N32H787XKB7_EVB V1.1
        N32H787_EVB_PRO V1.1
        
3、使用说明
    系统配置
        1、时钟源：HSI+PLL
        2、系统时钟频率：
            N32H760系列：    600MHz
	
        USART配置如下：
    - 波特率 = 115200 baud
    - 字长 = 8数据位
    - 1停止位
    - 校验控制禁用
    - 硬件流控制禁用（RTS和CTS信号）
    - 接收器和发送器使能
    
    USART引脚连接如下：

   N32H787XKB7_EVB ：
    Slave:
     - UART12_Rx.PJ9
     - UART12_Tx.PJ8 
     - UART12_DE.PJ11
     - 485模块

  N32H787_EVB_PRO :
    Slave:
     - USART7_Rx.PH4
     - USART7_Tx.PH5 
     - USART7_DE.PG3
     - 485模块

 其他：
    Slave:
     - USART3_Rx.PD9
     - USART3_Tx.PD8 
     - USART3_DE.PD12
     - 485模块
     
     485连接：
     A<--->A
     B<--->B

    
    测试步骤与现象：
    - Demo在KEIL环境下编译后，分别下载Master与Slavedemo至Master与Slave开发板
    - 复位运行，查看串口打印信息，PASSED为测试通过，FAILED为测试异常


4、注意事项

    Slave开发板需先上电，Master再上电




1. Function description

    This test case demonstrates basic communication between two development board USARTz via interrupts.
    The Master sends TxBuffer2 data to the Slave and the USARTz receives the data and stores it in RxBuffer2.
    The received data is compared with the sent data and the comparison is stored in the TransferStatus variable.

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: 
            N32H760 series:     600MHz

    USART is configured as follows:
    - Baud rate = 115200 baud
    - Word length = 8 data bits
    - 1 stop bit
    - checksum control disabled
    - Hardware flow control disabled (RTS and CTS signals)
    - Receiver and transmitter enable
    - DMA transmit mode enabled, DMA receive mode disabled

    Master:
     - UART3_Rx.PD9
     - UART3_Tx.PD8 
     - UART3_DE.PD12 
     - 485模块
    Slave:
     - UART3_Rx.PD9
     - UART3_Tx.PD8 
     - UART3_DE.PD12
     - 485模块
     
     485 connection:
     A<--->A
     B<--->B

    Test steps and phenomena:
    - After the demo is compiled in KEIL environment, download Master and Slavedemo to Master and Slave development boards respectively.
    - Reset running, Viewing Serial Port Printing Information, PASSED for the test passed, FAILED for the test exception

4. Attention

    The Master board needs to be powered up first, then the Slave.