1˵

    òʾUARTyUARTzʵִIrDA͹ģʽ빦ܵĻͨš
    ȣUARTyTxBuffer1UARTzUARTzͨжϽݴRxBuffer1
    󣬱ȽϽ뷢ݣȽϽTransferStatus


2ʹû

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


3ʹ˵

    ϵͳʱ£
    - ʱԴ = HSE
    - ϵͳʱ = 8MHz
    
    UART£
    -  = 600 baud
    - ֳ = 8λ
    - 1ֹͣλ
    - Уƽ
    - ӲƽãRTSCTSźţ
    - ͷʹ
    - IrDAģʽʹ
    
    UART£
    - UART1_Tx.PA2    <------->   IrDA Transmitter
    - UART2_Rx.PA7    <------->   IrDA Receiver
    
    - GPIO.PB0         <------->   38kHz carrier

    
    Բ
    - λMCU鿴TransferStatusУPASSEDΪͨFAILEDΪ쳣


4ע

1. Function description

    This test example demonstrates the basic communication between UARTy and UARTz to realize the infrared 
    decoding function of serial IrDA low power consumption mode.
    First, UARTy sends TxBuffer1 data to UARTz, and UARTz receives data through interrupt and stores it in RxBuffer1.
    Subsequently, compare the received data with the sent data, and the result of the comparison is stored in the 
    TransferStatus variable.


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:
    -Clock source = HSE
    -System clock = 8MHz
    
    The UART configuration is as follows:
    -Baud rate = 600 baud
    -Word length = 8 data bits
    -1 stop bit
    -Verification control disabled
    -Hardware flow control disabled (RTS and CTS signals)
    -Receiver and transmitter enable
    -IrDA mode enable
    
    The UART pin connections are as follows:
    - UART1_Tx.PA2    <------->   IrDA Transmitter
    - UART2_Rx.PA7    <------->   IrDA Receiver
    
    - GPIO.PB0         <------->   38kHz carrier

    
    Test steps and phenomena:
-Reset and run the MCU, check the variable TransferStatus, where PASSED means the test passed and FAILED means the test is abnormal


4. Matters needing attention