1˵

    ʾʾUSARTģLINģʽΪڵѯ֡0x3CʹӦ֡0x3D


2ʹû

    KEIL MDK-ARM V5.34.0.0
    Ӳ 
        N32G05xϵУ
            N32G05xRBQ7_STB V1.0
        N32G05xϵУ
            N32G05xRBL7_STB V1.0


3ʹ˵

    ϵͳʱ£
    - ϵͳʱ = 64MHz
    
    ӡã
            UART1TX - PA9RX - PA10115200
    
    - LIN mode master     LIN mode slave
    - UART2_Tx.PA6  <-->  UART2_Rx.PA7  
    - UART2_Rx.PA7  <-->  UART2_Tx.PA6   

    
    Բ
    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. Use environment

	Software development environment: KEIL MDK-ARM V5.34.0.0
    Hardware development environment:
         N32G05x series:
            Developed based on the evaluation board N32G05xRBQ7_STB V1.0
         N32G05x series:
            Developed based on the evaluation board N32G05xRBL7_STB V1.0


3. Instructions for use

    The system clock configuration is as follows:
    -System clock = 64MHz
    
    Print Serial Port Configuration:
                UART1TX - PA9RX - PA10115200
    
    - LIN mode master     LIN mode slave
    - UART2_Tx.PA6  <-->  UART2_Rx.PA7  
    - UART2_Rx.PA7  <-->  UART2_Tx.PA6 

    
    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. Matters needing attention