1˵

	1I2S ͨжշ

2ʹû

	/* Ӳ̶ӦĿӲƽ̨ */
	壺N32L43XM-STB N32L40XM-STB V1.1

3ʹ˵
	
	/* ģ÷:ʱӣI/O */
	1SystemClock108MHz
	2GPIOI2S1MASTER  WS--PA4SCK--PA5SD--PA7
		 I2S2SLAVE   WS--PB12SCK--PB13 SD--PB15,
	3жϣI2S1 жں SPI1_IRQHandlerI2S2 жںSPI2_IRQHandler


	/* DemoĲԲ */
	1سλУ
	22S ʼ 16 λݸʽ48K ƵʣI2S1ݷʱ SPI1_IRQHandler ݣI2S2 ݽʱ SPI2_IRQHandler  ɺ󣬲鿴 TransferStatus1 ״̬Ϊ PASSED
	     I2S ʼ 24 λݸʽ16K ƵʣI2S1ݷʱ SPI1_IRQHandler ݣI2S2 ݽʱ SPI2_IRQHandler  ɺ󣬲鿴 TransferStatus2 ״̬Ϊ PASSED

4ע
	




1. Function description

	1. I2S sends and receives data through interrupts

2. Use environment

	/* Hardware environment: the development hardware platform corresponding to the project */
	Development board: N32L43XM-STB N32L40XM-STB V1.1

3. Instructions for use

	/* Describe related module configuration methods; for example: clock, I/O, etc. */
	1. SystemClock: 108MHz
	2. GPIO: I2S1 (MASTER WS--PA4, SCK--PA5, SD--PA7),
	             I2S2 (SLAVE WS--PB12, SCK--PB13, SD--PB15),
	3. Interrupt: I2S1 interrupt entry function SPI1_IRQHandler, I2S2 interrupt entry function SPI2_IRQHandler

	/* Describe the test steps and phenomena of the Demo */
	1. After compiling, download the program to reset and run;
	2. 2S is initialized to 16-bit data format, 48K sampling frequency. When I2S1 has data to send, it enters the SPI1_IRQHandler function to receive data. 
	   When I2S2 has data to receive, it enters the SPI2_IRQHandler function to send data. After the operation is completed, check that the status of TransferStatus1 is PASSED;
	  I2S is initialized to 24-bit data format, 16K sampling frequency. When I2S1 has data to send, it enters the SPI1_IRQHandler function to receive data.
	  When I2S2 has data to receive, it enters the SPI2_IRQHandler function to send data. After the operation is completed, check that the status of TransferStatus2 is PASSED;

4. Matters needing attention
	none