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.
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