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)

406件の閲覧回数
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 返信

382件の閲覧回数
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 件の賞賛
返信