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

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

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

249 次查看
mingven
Contributor I

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

0 项奖励
回复
1 回复

217 次查看
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 项奖励
回复