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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

914件の閲覧回数
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 返信

647件の閲覧回数
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 件の賞賛
返信