SPI Query

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
824件の閲覧回数
carlosomarharoc
Contributor II

Hi!

 

I have some questions  about SPI function

 

With the SPI working in bidirectional mode. ¿Can I send dates to the slaves and can receive dates from slaves?

 

I don't know if I explained

 

I really appreciate your help

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
622件の閲覧回数
adriancano
NXP Employee
NXP Employee

Hi,

Yes, if the SPI module supports single-wire bidirectional mode it works just like the normal SPI mode but using just one pin in master mode and slave mode in this case MOMI for master and SISO for SLAVE. Please refer to the section MOSI — Master Data Out, Slave Data In and MISO — Master Data In, Slave Data Out in the reference manual there you can check the information how the SPI lines behave when bidirectional mode is activated.

Here you can see a table that compares Normal Mode and Bidirectional Mode

spi mode 8 bits.jpg


Hope this information can help you.

Best Regards,
Adrian Sanchez Cano
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
623件の閲覧回数
adriancano
NXP Employee
NXP Employee

Hi,

Yes, if the SPI module supports single-wire bidirectional mode it works just like the normal SPI mode but using just one pin in master mode and slave mode in this case MOMI for master and SISO for SLAVE. Please refer to the section MOSI — Master Data Out, Slave Data In and MISO — Master Data In, Slave Data Out in the reference manual there you can check the information how the SPI lines behave when bidirectional mode is activated.

Here you can see a table that compares Normal Mode and Bidirectional Mode

spi mode 8 bits.jpg


Hope this information can help you.

Best Regards,
Adrian Sanchez Cano
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
622件の閲覧回数
carlosomarharoc
Contributor II

Hi,

Thanks Adrian. I cheked the reference manual in MOSI and MISO. I solve the configuration for SPI.

Now i have some code acoording of SPI in single-wire bidirectional mode.

Just need testing it, thanks for reply.

Regards!

0 件の賞賛
返信