Hello, guys!
recently, I made a test demo project. I use my LPC824 as master and LPC 1114 as slave. This system work well in SPI mode 1&3, but in SPI mode 0&2, the slave just receive the first byte of each frame, and sometimes this byte left shift 1 bit.
I dont know why, maybe my configs is wrong. So, I download the official demo lpcopen_v2_00a_keil_iar_nxp_lpcxpresso_ 11c24.zip, and use it to test. In SSP demo, I change the config to SLAVE, but it work the same as what I coding.
guys! I need your help!
best wishes!
shauew
Hi shauew,
The master mode and the slave mode should be the same.
Your problem should caused by the mode mismatched between the master and slave.
So, when your master use mode 0, slave should also be configured as mode 0, other modes are the same.
Please check the mode in your master and slave again.
Wish it helps you!
If you still have question, please let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------