cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H723 SPI DMA communicate with L9963E AFE through L9963T transceiver

Arrhenius
Associate III

Hi,

I am working on a BMS project using STM32H723, L9963E/T.

Currently I have implemented SPI code which communicates with L9963E in Polling method. To improve upon the time taken by the device for communication, I am planning to go ahead with SPI DMA. Provided I have to consider the BNE signal coming from the transceiver during the DMA transfer.

Kindly suggest me whether I can go ahead with the DMA implementation or should I think of using the interrupt mode of of SPI transfer with BNE handshake.

Regards

Ajeeth Kumar

2 REPLIES 2
Saurabh NISHAD
ST Employee

Hi Ajeeth,

I suggest going with DMA is better approach here.

Regards,

ST Online Support Team

Regards,
Saurabh NISHAD
Sr. Application Engineer,
MDG-GPM
Arrhenius
Associate III

Hi Saurabh,

I have implemented the communication through DMA and an interrupt for BNE.

Now I have introduced two interrupts along with DMA, the EXTI interrupt for BNE signal and SPI interrupt for knowing the End of Transfer.

In STM32H7 MCUs the DMA offers a feature where the DMA transfer can be triggered through a EXTI. Due to the limitations in handling of frames from L9963E, I am not using DMA EXTI feature.

If you have any comments on the implementation, please feel free to share your opinion.

Regards

Ajeeth Kumar