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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

405 Views
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 Kudos
Reply
1 Reply

381 Views
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 Kudos
Reply