SPRUJ79 November 2024 F29H850TU
FILE: spi_ex4_external_loopback_fifo_interrupts.c
This program uses the external loopback between two SPI modules. Both the SPI FIFOs are used. SPI-A is configured as a peripheral and receives data from SPI-B which is configured as a controller. SPI-A RX interrupt is used.
A stream of data is sent and then compared to the received stream. The sent data looks like this:
0000 0001
0001 0002
0002 0003
....
FFFE FFFF
FFFF 0000
etc..
This pattern is repeated forever.
Note : The SPI peripheral generates level interrupts, which should be cleared in ISR to avoid generating false pending interrupt on clear edge, followed by some wait cycles
External Connections
-GPIO16 and GPIO63 - SPIPICO -GPIO17 and GPIO25 - SPIPOCI -GPIO34 and GPIO26 - SPICLK -GPIO61 and GPIO27 - SPISTE
Watch Variables