Hello, I am facing a issue to generate generate a external clock from MCU on MCO1 GPIO pin on STM32F769I Discovery board.
- November 30, 2021
- 2 replies
- 1157 views
Here are the details on MCO1 pin configurations,
GPIO_InitStruct.Pin = LL_GPIO_PIN_8;
GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE;
GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_HIGH;
GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;
GPIO_InitStruct.Pull = LL_GPIO_PULL_NO;
GPIO_InitStruct.Alternate = LL_GPIO_AF_0;
LL_GPIO_Init(GPIOA, &GPIO_InitStruct);
Below is MCO1 clock configuration:
LL_RCC_ConfigMCO(LL_RCC_MCO1SOURCE_HSE, LL_RCC_MCO1_DIV_5);
External HSE on STM32F769I-Disco board is of 25Mhz.
So expected signal on MCO1 (PA8) is smooth square wave with 5 MHz frequency.
but I am getting signal with variation in amplitude as shown in the attached Image file.
Please, do guide me if anything is missing in the configuration or attached waveform is expected and need to be handled outside for filtering a amplitude values.
Thank You,
Deep darji.
