stefan2005 发表于 2019-3-14 18:38:50

STM32F7 DMA2 to SPI configuration

项目中STM32F7 通过SPI 接口向一个芯片发送64位信号。用SPI发送4次完成。

SPI设置如下
Mode: Transmit Only Master
Hardware NSS Signal: Disable
Motorola 16 Bits data sizes
关键是在DMASettings 有些疑问
设置看图片。

SPI FIFO 设为 half word (16 bits) 因为上面设置了SPI 的data sizes 16 bits
DMA DATA Width 设为 word (32 bits), 因为是64位信号,从源端到DMA FIFO 发送两次。
我的问题是
1. mode 选 Normal 好还是 CIRCULAR?
2. FIFO Threshold 这里应该是Half Full 吧。
3. Burst Size 是选 什么比较有效。

谢谢回复!

stefan2005 发表于 2019-3-14 20:42:55

Memory 选word and single, threshold half full
还是 Memory 选 half word and 4 increment, threshold half full.
哪个更有效啊。

Kevin201707 发表于 2019-3-15 10:52:37

建议CIRCULAR,防止溢出;
memory也是half word,这样内存利用率高。

stefan2005 发表于 2019-3-18 18:06:21

谢谢回复!
还有其它的建议吗?
页: [1]
查看完整版本: STM32F7 DMA2 to SPI configuration