2022-11-28 09:27 PM
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
2023-01-02 12:09 AM
Hi Ajeeth,
I suggest going with DMA is better approach here.
Regards,
ST Online Support Team
2023-01-02 09:24 PM
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