1、功能说明

    该测例演示了如何使用USART多处理器模式?
    首先，分别设置USARTy和USARTz的地址为0x1和0x2。USARTy连续给USARTz
发送字符0x33。USARTz收到0x33，便翻转LED1的引脚。
    一旦KEY1_INT_EXTI_LINE线检测到上升沿，则产生EXTI0中断，在
EXTI0_IRQHandler中断处理函数中(the ControlFlag = 0)，USARTz进入静默
模式，在静默模式中，LED引脚停止翻转，直到KEY1_INT_EXTI_LINE线检测到
上升沿(the ControlFlag = 1)。在EXTI0_IRQHandler中断处理函数中，USARTy
发送地址0x102唤醒USARTz。LED引脚重新启动翻转。


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、系统时钟频率：
            N32H760系列：    400MHz

    USARTy配置如下：
    - 波特率 = 115200 baud
    - 字长 = 9数据位
    - 1停止位
    - 校验控制禁用
    - 硬件流控制禁用（RTS和CTS信号）
    - 接收器和发送器使能  
    
    USART引脚连接如下：
     - USART3_Tx.PD8 <-------> UART9_Rx.PB8
     - USART3_Rx.PD9 <-------> UART9_Tx.PB9
    
        LED <-------> PA1（D1）
   
    测试步骤与现象：
     - Demo在KEIL环境下编译后，下载至MCU
    - 复位运行，观察LED是否处于闪烁状态
    - 按按键KEY1（PC0），观察LED是否停止闪烁
    - 再次按按键KEY1（PC0），观察LED是否恢复闪烁


4、注意事项




1. Function description

    This test example demonstrates how to use the USART multiprocessor mode.
    First, set the addresses of USARTy and USARTz to 0x1 and 0x2, respectively. USARTy continuously gives USARTz send the character
    0x33. USARTz receives 0x33 and flips the pin of LED1.
    Once a rising edge is detected on the KEY1_INT_EXTI_LINE line, an EXTI0 interrupt will be generated.
    In the EXTI0_IRQHandler interrupt handler (the ControlFlag = 0), USARTz goes silent mode, in silent mode, the LED pin stops toggling.
    toggling until the KEY1_INT_EXTI_LINE line detects rising edge (the ControlFlag = 1). In the EXTI0_IRQHandler interrupt handler, 
    USARTysend address 0x102 to wake up USARTz. The LED pin restarts toggling.


2. Development environment

    Software development environment: KEIL MDK-ARM V5.34
			     					    IAR EWARM 8.50.1 
   
    Hardware development environment:
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787    

3. How to use
    
    System Configuration:
        1. Clock source: HSI+PLL
        2. System Clock frequency: 
            N32H760 series:     400MHz

    3.USARTy is configured as follows:
    - Baud rate = 115200 baud
    - Word length = 9 data bits
    - 1 stop bit
    - checksum control disabled
    - Hardware flow control disabled (RTS and CTS signals)
    - Receiver and transmitter enable
    
     The USART pins are connected as follows:
     - USART3_Tx.PD8 <-------> UART9_Rx.PB8
     - USART3_Rx.PD9 <-------> UART9_Tx.PB9
    
        LED <-------> PA1（D1）
    
     Test steps and phenomena:
    - Demo is compiled in KEIL environment and downloaded to MCU
    - Reset operation and observe whether LED are blinking
    - Press the button KEY1(PC0) and observe whether LED stop flashing
    - Press the button KEY1(PC0) again and observe whether LED resume to flash


4. Attention
    none