AT91 SPI Slave - Anyone get it to work?
I'm working on an AT91SAM9260EK board, and am trying to use the SPI1 bus in slave mode under Linux.
I have an interrupt handler, and am doing byte-at-time transactions using SPI_TDR and SPI_RDR (and SPI_TDRE and SPI_RDRF interrupts)
I can receive bytes fine, but my transmitted bytes seem garbled.
My scoped lines looks like clean data and clock, just *wrong* data.
I am running at 100Khz, so it shouldn't be a speed issue.
I'm using 8-bit data buffers.
I've been working on this for about a week, and I'm ready to tear my hair out in frustration.
Has *anyone* gotten their AT91 SPI to work in slave mode in any fashion?
Thanks.
Signature · 9 lines
Jason Mcmullan <[email protected]> Evil Labs ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/