Set up the SPI module in
SysConfig. Put the device in controller mode, and leave the rest of the settings
on default. In the Advanced Configuration tab, make sure that the RX FIFO
Threshold level is set to the RX FIFO contains
≥
1 entry. Make sure that the TX FIFO Threshold level is set to the TX
FIFO contains
≤
2 entries. Now navigate to the Interrupt configuration tab, and
enable the Receive, Transmit, RX Timeout, Parity
Error, Receive FIFO Overflow, Receive FIFO Full, and
Transmit FIFO Underflow interrupts.
Set up the UART module in
SysConfig. Set the baud rate to 9600. Enable the Receive interrupt.