你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

st-img
chrome
st-img
firefox
st-img
safari
st-img
ie8及以上
shequ.stmicroelectronics.cn
  • ST意法半导体官网
  • STM32中文官网
  • ST全球论坛
登录/注册
  • 首页
  • 技术问答
  • 话题
  • 资源
  • 创客秀
  • 视频
  • 标签
  • 积分商城
  • 每日签到
liutogo

liutogo

 

回答数 0 关注数 0
关注 私信
  • 动态99
  • 提问
  • 回答0
  • 创客秀 0
  • 分享 0
  • 关注0
2 回答

【求助】F207用DMA方式驱动FSMC接口的LCD屏的问题

未设置标签
Robot@HCS Robot@HCS 回答时间: 2016-12-15 16:26

DMA_InitTypeDef  DMA_InitStructure; DMA_DeInit(DMA1_Channel4); DMA_InitStructure.DMA_PeripheralBaseAddr =(uint32_t)SRC_Const_Buffer;//The address of peripheral DMA_InitStructure.DMA_MemoryBaseAddr = (uint32_t)Bank1_SRAM3_ADDR;//The DAM RAM address DMA_InitStructure.DMA_DIR = DMA_DIR_PeripheralSRC;//Peripheral is the source of data DMA_InitStructure.DMA_BufferSize =32;//32 times DMA_InitStructure.DMA_PeripheralInc = DMA_PeripheralInc_Enable;//The address of peripheral will be added DMA_InitStructure.DMA_MemoryInc = DMA_MemoryInc_Enable;//The address of DMA will be added DMA_InitStructure.DMA_PeripheralDataSize = DMA_PeripheralDataSize_Word;//32 bits DMA_InitStructure.DMA_MemoryDataSize = DMA_MemoryDataSize_Word;//32 bits DMA_InitStructure.DMA_Mode = DMA_Mode_Normal;//DMA Work in normal mode,not Circle DMA_InitStructure.DMA_Priority = DMA_Priority_High;//DMA high Priority DMA_InitStructure.DMA_M2M = DMA_M2M_Enable;// enable Memory to Memory transfer DMA_Init(DMA1_Channel4, &DMA_InitStructure); //Enable DMA1 channel 4 transfer complete interrupt DMA_ITConfig(DMA1_Channel4, DMA_IT_TC, ENABLE); //clear the flag DMA_ClearFlag(DMA1_FLAG_TC4); //Enable DAM1 channel4 transfer DMA_Cmd(DMA1_Channel4, ENABLE);

赞0
liutogo liutogo


阅读作者更多的帖子

所在话题

参与活动

  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16