Spi Configuration on EB tresos

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

Spi Configuration on EB tresos

4,399件の閲覧回数
prasadrashinkar
Contributor II

Hello,

 

I am trying to Configure Two Slave Devices With S32K344 on EB Tresos getting issues while configuring channels and SpiPhyunit please Share some solutions or examples to configure Two slaves on one SPI.

 

I am using EB Tresos  Design Studio 29.0.0 And doing this activity on the S32K344 board.

 

If anyone has such an example code, please share.

 

Thanks

#s32k344 #SPI #SPI Slave 

タグ(1)
0 件の賞賛
返信
6 返答(返信)

4,376件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @prasadrashinkar,

I don't understand the use case.

Why do you need two Slave instances on one LPSPI module?

S32K344 has 6 LPSPI modules.

0 件の賞賛
返信

4,319件の閲覧回数
prasadrashinkar
Contributor II
Already other SPI are in use
0 件の賞賛
返信

4,323件の閲覧回数
prasadrashinkar
Contributor II
We want to configure Two Slaves, and we want to use those Using Chip Select. Can you please suggest a configuration or example for this use case?
0 件の賞賛
返信

4,299件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @prasadrashinkar,

This use case does not make much sense. You could have two different configuration structures for the Slave device (with different chip select) but you would need to reconfigure the LPSPI module every time before the CS is asserted by the master.

If you need more SPI intances, you can use FlexIO to emulate SPI.

 

Regards,

Daniel

0 件の賞賛
返信

4,275件の閲覧回数
prasadrashinkar
Contributor II

We have configured two slaves (MSDI And L99DZ) as Slave devices to LSPI 3 of s32k344.

In the Snap below, we created two channels, two external devices, Two Sequences, Two Jobs, and one SpiPhyunit. Is this configuration correct?

And why we are not able to use one master and two slaves using a chip select?

0 件の賞賛
返信

4,256件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Refer to the RM, rev.9,

Chapter 70 Low Power Serial Peripheral Interface (LPSPI)

Section 70.6.1 LPSPI register descriptions.

PCS is configured in the Transmit Command register (70.6.1.16 Transmit Command (TCR)).

 

Thank you

 

 

0 件の賞賛
返信