SPI receive buffer doesn't equal send buffer when connecting SIN with SOUT. Help!

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

SPI receive buffer doesn't equal send buffer when connecting SIN with SOUT. Help!

1,322件の閲覧回数
samerbastawy
Contributor I

I have initialized an SPI instance, configured both slave and master configurations (same phase, polarity and everything), than connected SIN (PTB3) with SOUT (PTB1).

 

I am expecting to receive what I send when calling LPSPI_DRV_MasterTransfer() but for some reason that doesn't happen. Project is attached below. Please help.

Original Attachment has been moved to: lpspi_transfer_example.zip

ラベル(2)
0 件の賞賛
返信
1 返信

1,154件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi Samer, 

in your project you setup once SPI_0 as a master device and as a next step you setup the very same peripheral as a slave device. In attachment is fixed project - it is working with direct connection between pins PTB3 and PTB1 (J2 pin 9 and J4 pin 7 on EVB).  For more details you can look at this tutorial related to SPI basic usage/architecture.

Jiri 

0 件の賞賛
返信