S32K3xx: LPSPI transfer mode configuration

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

S32K3xx: LPSPI transfer mode configuration

跳至解决方案
6,101 次查看
tecraghurama
Contributor I

I am having difficulties in finding the lpspi transfer mode selection.

S32K312EVB-Q172 evaluation board which uses S32K344 is being used.

I used Lpspi driver LSPI3 and did the configuration but unable to find, How to change the transfer mode selection settings.

In the generated code LPSPI_IP_POLLING is selected i needed LPSPI_IP_INTERRUPT.

Any inputs on this would be of help.

Thanks in advance.

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
6,077 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @tecraghurama,

I apologize for the inconveniences; it seems there is currently no way to enable interrupts from the SPI driver's peripheral perspective. I will report this problem with the corresponding team.

"Master" mode supports both asynchronous methods (DMA & Interrupts). 

You will need to configure the IntCtrl driver for an interrupt name and handler, as implemented in the HalfDuplex examples:

Julin_AragnM_0-1707336577801.png

It is also important to update the transfer mode with the following line:

    Lpspi_Ip_UpdateTransferMode(SLAVE_EXTERNAL_DEVICE.Instance, LPSPI_IP_INTERRUPT);

I hope you find this helpful.

Best regards,
Julián.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
6,078 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @tecraghurama,

I apologize for the inconveniences; it seems there is currently no way to enable interrupts from the SPI driver's peripheral perspective. I will report this problem with the corresponding team.

"Master" mode supports both asynchronous methods (DMA & Interrupts). 

You will need to configure the IntCtrl driver for an interrupt name and handler, as implemented in the HalfDuplex examples:

Julin_AragnM_0-1707336577801.png

It is also important to update the transfer mode with the following line:

    Lpspi_Ip_UpdateTransferMode(SLAVE_EXTERNAL_DEVICE.Instance, LPSPI_IP_INTERRUPT);

I hope you find this helpful.

Best regards,
Julián.

0 项奖励
回复
6,058 次查看
tecraghurama
Contributor I

@Julián_AragónM 

Thanks for your Response.

We have configure the IntCtrl driver for an interrupt name and handler.

and will try using the function for updating the transfer mode.