Content originally posted in LPCWare by elef on Mon Dec 26 21:13:56 MST 2011
Quote: Dave3891
I have been trying to get SPI on a 1343 to work in slave mode with a frame of bytes but I can't seem to get it to work.
I can get a single byte by pulling CS low, byte, CS high.
But I want to go CS low, byte, byte, byte, byte, CS high.
So the data can be sent as a frame.
Thanks
Dave
Dave,
Did you get this working?
According to the User manual, you can do it as long as your CPHA is 1. You should be able to transfer 1 word or multiple words (ie 4 in your case, or as many as you want, it is arbitrary) without SSEL (CS) changing. This would make sense when reading serial SPI flash chips, as you would be reading millions of bytes in one hit, without changing SSEL (CS).
cheers.