|
||
---|---|---|
.. | ||
armgcc | ||
board.c | ||
board.h | ||
clock_config.c | ||
clock_config.h | ||
pin_mux.c | ||
pin_mux.h | ||
readme.md | ||
spi_interrupt_v3_14.xml | ||
spi_interrupt.c |
Overview
The spi_interrupt example shows how to use spi functional API to do interrupt transfer:
In this example, one spi instance as master and another spi instance as slave. Master sends a piece of data to slave, and check if the data slave received is correct.
SDK version
- Version: 2.15.000
Toolchain supported
- IAR embedded Workbench 9.40.1
- Keil MDK 5.38.1
- GCC ARM Embedded 12.2
- MCUXpresso 11.8.0
Hardware requirements
- Micro USB cable
- LPCXpresso55s69 board
- Personal Computer
Board settings
Master_board(SPI7) Slave_board(SPI2)
Pin Name Board Location Pin Name Board Location
MISO P17 pin 12 MISO P18 pin 6
MOSI P17 pin 10 MOSI P18 pin 10
SCK P17 pin 14 SCK P18 pin 8
SSEL1 P17 pin 1 SSEL0 P17 pin 16
Prepare the Demo
Note: MCUXpresso IDE project default debug console is semihost
- Connect a micro USB cable between the PC host and the CMSIS DAP USB port (P6) on the board
- Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
- 115200 baud rate
- 8 data bits
- No parity
- One stop bit
- No flow control
- Download the program to the target board.
- Reset the SoC and run the project.
Running the demo
When the demo runs successfully, the log would be seen on the CMSIS DAP terminal like:
SPI one board interrupt example started!
SPI transfer finished!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~