Is it possible to communicate with multiple external components using one SPI peripheral (LPSPI0)

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

Is it possible to communicate with multiple external components using one SPI peripheral (LPSPI0)

471 次查看
elb1
Contributor III

Hello,

I am using S32k142 microcontroller, and i am trying to communicate by SPI (LPSPI0) with 3 different components, each one have different spi setup (clock mode, frame size...),
is it possible to make this, by updating the spi setup each time i want to use different component.
if it is possible, will it also work if i am calling the handling of each component in a different task ?

Ps. i am handling the chip select manually as a gpio for all these components.

0 项奖励
回复
1 回复

447 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @elb1 

If you only want to use LPSPI0 to communicate with 3 different components, each one with a different setup, you are going to need to deinitialize the module and initialize again with the new configuration. 

It is not a recommended application so we do not guarantee correct operation, this will depend on your application.

 

B.R.

VaneB

 

0 项奖励
回复