سلام دوستان
من برای تامین کلاک دوربین از کلاک داخلی stm32 استفاده کردم.
این فرکانس هایی که داخل خروجی میده کسی میتونه توضیحشوم بده که فرکانسشون چی میشه.
کد:
Operational procedures:
1), set PA.8 the reuse Push-Pull mode.
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8;
GPIO_InitStructure.GPIO_Speed ??= GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
GPIO_Init (GPIOA, & GPIO_InitStructure);
2) Select the output clock source.
Clock selected by the clock configuration register (RCC_CFGR) MCO [2:0] bits control.
RCC_MCOConfig (RCC_MCO);
The parameters RCC_MCO internal clock to be output:
RCC_MCO_NoClock --- clock output
RCC_MCO_SYSCLK --- output system clock (SYSCLK)
RCC_MCO_HSI --- output high-speed internal 8MHz RC oscillator (HSI)
RCC_MCO_HSE --- output high-speed external clock signal (HSE)
RCC_MCO_PLLCLK_Div2 --- divided clock output PLL multiplier (PLLCLK / 2)
Note: Due to the STM32 GPIO output pin maximum response frequency of 50MHz output frequency more than 50MHz, the output waveform distortion.