Hi there,
I am using the LM4F232H5QD eval board. I can successfully compile and debug/run the (slightly modified) example I obtained from here:
C:\StellarisWare\examples\peripherals\ssi\spi_master.c
The main difference between the example code and the code I'm attaching above is that I use SSI1 (not SSI0) and I enabled internal loopback with the following line of code so I could confirm it works OK.
//enable SSI (internal) loopback mode
HWREG(SSI1_BASE + SSI_O_CR1) |= SSI_CR1_LBM;
And it does loopback OK ! Here is the UART/hyperterm output:
Sent:
's' 'p' 'i'
Received:
's' 'p' 'i' SSI ->
Mode: SPI
Data: 8-bit
However when I comment out that line and physically wire PF0 to PF1 (SSI0Rx to SSI0Tx) effecting an external loopback, I am unable to read any data back (the bytes are empty). Note that I have left SSI0CLK and SSI0Fss unwired at this stage.
rgds
Peter