stm32 用DCMI数据都是00

2019-07-20 17:15发布

初始化跟点子一样。dcmi改成这样
 DCMI_InitStructure.DCMI_CaptureMode = DCMI_CaptureMode_Continuous;//????????
DCMI_InitStructure.DCMI_CaptureRate = DCMI_CaptureRate_All_Frame;//????????
DCMI_InitStructure.DCMI_ExtendedDataMode = DCMI_ExtendedDataMode_8b;//8??????????  
DCMI_InitStructure.DCMI_HSPolarity = DCMI_HSPolarity_High;//HSYNC ?????????§
DCMI_InitStructure.DCMI_PCKPolarity = DCMI_PCKPolarity_Rising;//PCLK ?????????§
DCMI_InitStructure.DCMI_SynchroMode = DCMI_SynchroMode_Hardware;//????????HSYNC,VSYNC
DCMI_InitStructure.DCMI_VSPolarity = DCMI_VSPolarity_Low;//VSYNC ?????????§



 DMA_InitStructure.DMA_Channel = DMA_Channel_1;  
  DMA_InitStructure.DMA_PeripheralBaseAddr = (u32)&DCMI->DR;//DCMI_DR_ADDRESS;
  DMA_InitStructure.DMA_Memory0BaseAddr = (uint32_t)JpegBuffer[0];   自己改数组
  DMA_InitStructure.DMA_DIR = DMA_DIR_PeripheralToMemory;
  DMA_InitStructure.DMA_BufferSize = 43200;  
  DMA_InitStructure.DMA_PeripheralInc = DMA_PeripheralInc_Disable;
  DMA_InitStructure.DMA_MemoryInc = DMA_MemoryInc_Enable; 
  DMA_InitStructure.DMA_PeripheralDataSize = DMA_PeripheralDataSize_Word; 
  DMA_InitStructure.DMA_MemoryDataSize = DMA_MemoryDataSize_HalfWord; 
  DMA_InitStructure.DMA_Mode = DMA_Mode_Circular;
  DMA_InitStructure.DMA_Priority = DMA_Priority_VeryHigh;
  DMA_InitStructure.DMA_FIFOMode = DMA_FIFOMode_Enable;        
  DMA_InitStructure.DMA_FIFOThreshold = DMA_FIFOThreshold_Full;
  DMA_InitStructure.DMA_MemoryBurst = DMA_MemoryBurst_Single;
  DMA_InitStructure.DMA_PeripheralBurst = DMA_PeripheralBurst_Single; 
用ov的摄像头可以,用其他摄像头实验。能够帧中断。就是数据都是00,用示波器看数据引脚D0,D1等是有数据,输出电平2.8V。
奇怪了,难道我那里配置不对?

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。