请问下,在S32DS中有没有函数可以动态切换SPI的MOSI和MISO的输入和输出(我使用的是LPSPI)。

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

请问下,在S32DS中有没有函数可以动态切换SPI的MOSI和MISO的输入和输出(我使用的是LPSPI)。

89 Views
mingven
Contributor I

产品使用的MCU为S32K312,软件开发环境为S32DS,由于硬件设计错误,需要程序在每次发送数据前对调lpspi1_sin、lpspi1_out的输入和输出。请问下有没有函数

0 Kudos
1 Reply

57 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @mingven,

It seems you want to change the configuration of the current LPSPI1 pin each time before transmitting the data, is this correct? There is currently no RTD function with this functionality. You can de-initialize the module and change the pin's configuration before every transmission, then initialize it again, which is not very effective but would solve the hardware design issue.

Best regards,
Julián

0 Kudos