1˵

	1SPI ȫ˫ NSS ģʽͽ

2ʹû

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


3ʹ˵
	
    1ʱԴHSE+PLL
    2ʱӣ64MHz
    3SPI1 ã
            SCK   -->  PB12
            MISO  -->  PB11
            MOSI  -->  PB10
    
    4SPI2 ã
            SCK   -->  PC0
            MISO  -->  PC3
            MOSI  -->  PC2
            
    4ʹ÷
        /* DemoĲԲ */
        1.سλУ
        2.SPI1 ʼλݣSPI2 ʼλԻ ɺ󣬼ݣ鿴 TransferStatus1  TransferStatus2 ״̬Ϊ PASSED
          SPI2 ʼλݣSPI1 ʼλԻ ɺ󣬼ݣ鿴 TransferStatus3  TransferStatus4 ״̬Ϊ PASSED

4ע
	



1. Function description

	1. SPI full-duplex software NSS mode to send and receive data

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

	/* Describe related module configuration methods; for example: clock, I/O, etc. */
	1. SystemClock: 64MHz
    2. clock source:HSE+PLL

    3. SPI1 configuration:
        SCK   -->  PB12
        MISO  -->  PB11
        MOSI  -->  PB10

    4. SPI2 Configuration:
        SCK   -->  PC0 
        MISO  -->  PC3
        MOSI  -->  PC2

	/* Describe the test steps and phenomena of the Demo */
	1. After compiling, download the program to reset and run;
	2. SPI1 initializes the bit host, sends data, SPI2 initializes the bit cluster machine, receives data, after the transmission is completed, 
	    check the data, check that the status of TransferStatus1 and TransferStatus2 is PASSED,
	    SPI2 initializes the bit host, sends data, SPI1 initializes the bit cluster machine, receives data, and after the transmission is completed,
	    check the data, and check that the status of TransferStatus3 and TransferStatus4 is PASSED;

4. Matters needing attention
	none