1、功能说明

    该演示显示了USART模块LIN模式作为主节点轮询发送主请求帧（0x3C）和从应答帧（0x3D）。

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配置如下：
    - 波特率 = 9600 baud
    - 字长 = 8数据位
    - 1停止位
    - 校验控制禁用
    - 硬件流控制禁用（RTS和CTS信号）
    - 接收器和发送器使能
    -LIN 模块使能
    
    - LIN mode master     LIN mode slave
    - USART3_Tx.PD8  <-->  USART3_Rx.PD9  
    - USART3_Rx.PD9  <-->  USART3_Tx.PD8  

       Master_LIN.LIN与Slave_LIN.LIN连接，两板公地。
    
    测试步骤与现象：
    a、 跳线连接到主机的从属引脚
    b、 一个开发板编译并下载LIN_Master代码作为主代码
         另一个开发板编译并下载LIN_Slave代码作为从属代码
    c、 重置从设备，然后重置主设备
   d、 主轮询发送请求帧（0x3C）和应答帧（0x3D）
         发送请求帧（0x3C）：主设备向从设备发送一个8字节的0x0F，并打印相关信息
         发送应答帧（0x3D）：从机收到应答帧后，向主机回复8字节0x01消息，并且主控打印相关信息


4、注意事项




1. Function description

    This demo shows that the USART module LIN mode as the master node polling to send the master
     request frame (0x3C) and the slave reply frame (0x3D).

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
    
    The USART configuration is as follows:
    -Baud rate = 9600baud
    -Word length = 8 data bits
    -1 stop bit
    -Parity control disabled
    -Hardware flow control disabled (RTS and CTS signals)
    -Receiver and transmitter enable
    -LIN mode enable

        - LIN mode master     LIN mode slave
    - USART3_Tx.PD8  <-->  USART3_Rx.PD9  
    - USART3_Rx.PD9  <-->  USART3_Tx.PD8  
       
       Master_LIN.LIN is connected to Slave_LIN.LIN with common ground for both boards.

    Test steps and phenomena:
    a, the jumper connects to the slave pin of the master
    b, one development board compiles and downloads LIN_Master code as the master and 
        the other development board compiles and downloads LIN_Slave code as the slave
    c, Reset the slave and then the master
    d, master polling sends request frame (0x3C) and reply frame (0x3D)
       Sending request frame (0x3C) : The master sends an 8-byte 0x0F to the slave and prints the related information
       Sending reply frame (0x3D) : After receiving a reply frame, the slave reply an 8-byte 0x01 message to the master, 
        and the master prints the related information

4. Attention
    none