DMA

作者: 圆肩男孩 | 来源:发表于2020-08-23 15:32 被阅读0次

DMA:Data Memory Access,直接存储器访问
Ⅰ、DMA请求

Ⅱ、DMA通道

(通道1-7)

3.仲裁

软件阶段:DMA_CCRx:PL[1:0]
硬件阶段:通道编号小的优先级大,DMA1的优先级高于DMA2的优先级

DMA_InitTypeDef初始化结构体
typedef struct
{
//外设地址 DMA_CPAR寄存器
  uint32_t DMA_PeripheralBaseAddr; /*!< Specifies the peripheral base address for DMAy Channelx. */
//存储器地址 DMA_CMAR
  uint32_t DMA_MemoryBaseAddr;     /*!< Specifies the memory base address for DMAy Channelx. */
//传输方向 DMA_CCR:DIR:4
  uint32_t DMA_DIR;                /*!< Specifies if the peripheral is the source or destination.
                                        This parameter can be a value of @ref DMA_data_transfer_direction */
//传输大小
  uint32_t DMA_BufferSize;         /*!< Specifies the buffer size, in data unit, of the specified Channel. 
                                        The data unit is equal to the configuration set in DMA_PeripheralDataSize
                                        or DMA_MemoryDataSize members depending in the transfer direction. */
//存储器地址增量模式
  uint32_t DMA_PeripheralInc;      /*!< Specifies whether the Peripheral address register is incremented or not.
                                        This parameter can be a value of @ref DMA_peripheral_incremented_mode */
//存储器地址增量模式
  uint32_t DMA_MemoryInc;          /*!< Specifies whether the memory address register is incremented or not.
                                        This parameter can be a value of @ref DMA_memory_incremented_mode */
//外设数据宽度
  uint32_t DMA_PeripheralDataSize; /*!< Specifies the Peripheral data width.
                                        This parameter can be a value of @ref DMA_peripheral_data_size */
//存储器数据宽带
  uint32_t DMA_MemoryDataSize;     /*!< Specifies the Memory data width.
                                        This parameter can be a value of @ref DMA_memory_data_size */
//DMA模式0:不执行循环操作,1执行循环操作.
  uint32_t DMA_Mode;               /*!< Specifies the operation mode of the DMAy Channelx.
                                        This parameter can be a value of @ref DMA_circular_normal_mode.
                                        @note: The circular buffer mode cannot be used if the memory-to-memory
                                              data transfer is configured on the selected Channel */
//通道优先级
  uint32_t DMA_Priority;           /*!< Specifies the software priority for the DMAy Channelx.
                                        This parameter can be a value of @ref DMA_priority_level */
//存储器到存储器模式
  uint32_t DMA_M2M;                /*!< Specifies if the DMAy Channelx will be used in memory-to-memory transfer.
                                        This parameter can be a value of @ref DMA_memory_to_memory */
}DMA_InitTypeDef;

相关文章

  • 2018-01-26课后总结

    今天主要学习了DMA,DMA包括DMA1、DMA2,每一个DMA下面包括8个stream,每个stream包括8个...

  • STM32 DMA

    STM32 DMA 1 什么是DMA? DMA(Direct memory access)意为直接内存访问,主要优...

  • DMA

    DMA:Data Memory Access,直接存储器访问Ⅰ、DMA请求 Ⅱ、DMA通道 (通道1-7) 3.仲...

  • 带你玩转基于SkyEye的TLE987 DMA控制器实现

    01.DMA 介绍 DMA,全称Direct Memory Access,即直接存储器访问。 DMA传输将数据从一...

  • 2021-03-04 USART DMA模式2个使能

    -使能相应的DMA通道:LL_DMA_EnableChannel-使能USART的DMA模式(RX和TX有单独开关...

  • 10月 17日

    今天讲的DMA DMA 全称Direct Memory Access,即直接存储器访问。 DMA传输将数据从一个...

  • 2021-03-02 G0系列DMA,DMAMUX的外设Requ

    LL方式,G0系列,DMA功能配置DMA功能除了DMA控制器外,加入了DMAMUX功能.DMAMUX相当于在外设(...

  • DMA详解

    这篇文章是对DMA基本概念、工作原理、常见问题做一个总结。 DMA概述 DMA的英文拼写是“Direct Memo...

  • MDA指标

    什么是DMA指标? 所谓DMA指标,也就是平行线差指标,是用来判断目前买卖能量大小以及未来价格的趋势.在DMA指标...

  • DMA

    1.从图我们可以看出对于我们的SMT32F103ZE来说,它拥有2个DMA器件,其中DMA1拥有7个通道,DMA2...

网友评论

      本文标题:DMA

      本文链接:https://www.haomeiwen.com/subject/vtvrjktx.html