|
Problem with SPI-BusNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Thomas Ruf Posted 20-Sep-2006 06:49 Toolset ARM |  Problem with SPI-Bus Thomas Ruf Hello, I have a problem with the SPI-Bus. I am using the Keil MCB-STR9-Board. When I debug the SSP example source from ST, I will hang in the while loop "SSP_GetFlagStatus(SSP1, SSP_FLAG_RxFifoNotEmpty)==RESET" forever. SPI-CLk and SPI-Data is driven out from the SPI-Master (SPI0). I have modified the source, but I never get data into the SPI-Slave (SPI1). After that I tried to set the SPI-Data-In from the master to high or low, but I never get the data 0x00 or 0xFF in the receive-buffer in the Master. I allways have the loopback data from the SPI0-Transmitter. The Control register 1 from SPI0 is set to 0x0002. I think the loopback function is not enabled with that. What have I made wrong? Thanks Thomas | | Read-Only Author Christian Hacker Posted 26-Sep-2006 14:36 Toolset ARM |  RE: Problem with SPI-Bus Christian Hacker If you read the data that was written to the fifo, then you are in half duplex transmission mode. You should try with Microwire format instead of Motorola. As for the example that tries to write to SSP1, you have to connect together MOSI/MISO of the 2 interfaces otherwise you will wait for a very long time before the data arrives. -cp | | Read-Only Author Hans Schneebauer Posted 27-Sep-2006 06:53 Toolset ARM |  RE: Problem with SPI-Bus Hans Schneebauer Please see http://www.keil.com/support/docs/3242.htm for more details about this problem. | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|