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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

940 次查看
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

标签 (2)
0 项奖励
回复
1 回复

673 次查看
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 项奖励
回复