简体   繁体   English

如何在 stm32f429zi 中使用循环模式?

[英]How to use circular mode in stm32f429zi?

I am working on the DMA Peripheral, and i have some confusion about the circular mode`s parameters.我正在研究 DMA 外设,我对循环模式的参数有些困惑。 i have tried to sort it out on my own.我试图自己解决。 so i put an example and i want someone to tell me if i correctly understood it or i need someone to explain it for me Assume that I want to keep transferring 128 Half-word from a peripheral to a memory.所以我举了一个例子,我希望有人告诉我我是否正确理解它或者我需要有人为我解释假设我想继续将 128 个半字从外围设备传输到 memory。 assume:-认为:-

PSIZE=Half-Word(2bytes)
MSIZE=WORD(4bytes) 
PBURST=16

so according to the PSIZE being a half-word that means the beat is a half-word so in each burts i am going to transfer 16beats which are 16half-words correct?所以根据 PSIZE 是一个半字,这意味着节拍是一个半字,所以在每个 burts 我要转移 16 个节拍,这 16 个半字是正确的吗? according to the reference manual it is noted that根据参考手册,注意到

NDTR=multipleof(PBURST * (MSIZE/PSIZE)) 

so in my example the NDTR is multiple of (32) correct?所以在我的例子中,NDTR 是 (32) 的倍数是否正确? up till now if i am correct, what is the value that should be written in the NDTR according to these configurations?and if i am wrong please guide me to the correct answer到目前为止,如果我是正确的,根据这些配置应该在 NDTR 中写入的值是多少?如果我错了,请指导我正确答案

I think the documentation is self explanatory:我认为文档是不言自明的: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM