Spi Configuration on EB tresos

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

Spi Configuration on EB tresos

4,355 次查看
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,332 次查看
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,275 次查看
prasadrashinkar
Contributor II
Already other SPI are in use
0 项奖励
回复

4,279 次查看
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,255 次查看
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,237 次查看
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,218 次查看
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 项奖励
回复