Hi Mark,
thank you for the quick response!
I'm using SPI0 on a K64 with CS4 as chip select:
PTC0 SPI0_CS4
PTD1 SPI0_SCK
PTD2 SPI0_MOSI (SOUT)
PTD3 SPI0_MISO (SIN)
Right now I have configured the RX interrupt but it never occurs.
I have only little time today so I will try again tomorrow.
Regards
Paul
Here is my code for the initialisation:
_CONFIG_PERIPHERAL(C, 0, (PC_0_SPI0_PCS4));
_CONFIG_PERIPHERAL(D, 1, (PD_1_SPI0_SCK | PORT_SRE_FAST | PORT_DSE_HIGH));
_CONFIG_PERIPHERAL(D, 2, (PD_2_SPI0_SOUT));
_CONFIG_PERIPHERAL(D, 3, (PD_3_SPI0_SIN));
SPI0_MCR = SPI_MCR_HALT;
SPI0_CTAR0 = (SPI_CTAR_FMSZ_8 | SPI_CTAR_CPHA | SPI_CTAR_CPOL);
SPI0_RSER = (SPI_SRER_RFDF_RE);
SPI0_MCR = (SPI_MCR_SLAVE | SPI_MCR_DCONF_SPI | SPI_MCR_CLR_RXF | SPI_MCR_CLR_TXF);
CLEAR_RECEPTION_FLAG();
fnEnterInterrupt(irq_SPI0_ID, PRIORITY_TIMERS, fnHandleSPI);