This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cortex-M3, SPI with USART, RXRDY doesn't work?

Hallo,

I use an SAM3X8 (Arduino-DUE) and use USART0 as SPI-Interface in slave-mode. In a test circuit I use the standard SPI as master that sends data to the USART-SPI (as slave). It works in principle with one exception: The RXRDY-Bit in the USART Channel Status Register (US_CSR) is always 0, even if the sent data have been arrived  a ms ago in the USART Receive Holding Register (US_RHR). I tried it with interrupts, but no interrupt was triggered.

(In my test circuit I now, when data shoul be arrived in the US-RHR of the slave, but typically, a slave can only wait.)

Does anybody have an idea?

Below the kernel of my code.

Greatings
GuaAck

0