LPC1114 did not work well in SPI mode 0/2 as slave

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1114 did not work well in SPI mode 0/2 as slave

904 Views
shauew
Contributor I

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

Labels (2)
0 Kudos
Reply
1 Reply

637 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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.

 pastedImage_1.png

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply