1、功能说明
    SPI 单线中断发送和接收数据

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、系统时钟频率：
             600MHz
        3、SPI主机配置：
             SPI1配置：SCK--PA5、MOSI--PA7          		
        4、SPI从机配置：
             SPI2配置：SCK--PD3、MISO--PB14

    使用方法：
        1).编译后下载程序复位运行；
        2).SPI主机 有数据需要发送时进入 SPI1_IRQHandler 中断函数发送，SPI2 有数据需要接收时进入 SPI2_IRQHandler 中断函数接收，数据传输完成后，查看 TransferStatus 状态为 PASSED；

4、注意事项
    1、“单线”数据线在主设备端为MOSI引脚，在从设备端为MISO引脚
    2、更改SPI重新编译时，建议清空之前的编译文件，如已编译过N32H73x_76x，改为编译N32H78x时，需要先清空之前编译过的内容
    3、CLK引脚需要下拉，否则数据会接收错位
    
1. Function description

    SPI single line interrupt send and receive data

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: 
            600MHz
        3. SPI Master configuration:
            SPI1 configuration: SCK--PA5、MOSI--PA7
        4. SPI2 Slave Configuration:
            SPI2 configuration：SCK--PD3、MISO--PB14

     Instructions:
        1). Compile and download the program reset run;
        2). SPI Master has data to be sent into the SPI1_IRQHandler interrupt function to send, SPI2 has data to be received into the SPI2_IRQHandler interrupt function to receive.After the data transfer is completed, check the TransferStatus status is PASSED;

4. Attention
     1)，The "single wire" data line is MOSI pin on the master device side and MISO pin on the slave device side.
     2), change the SPI recompile, it is recommended to clear the previous compilation file, such as has been compiled N32H73x_76x, to compile N32H78x, you need to first clear the contents of the previous compilation!
     3), The CLK pin needs to be pulled down, otherwise the data will be received incorrectly

