STM32F103 Clock Out on Pin PA8

Please do not post requests
Post Reply
User avatar
Amirebr
Posts: 2
Joined: Tue May 24, 2016 9:13 pm
Location: Iran

STM32F103 Clock Out on Pin PA8

Post by Amirebr » Wed May 10, 2017 6:41 pm

Hi everybody.

This is my library for outputing system and PLL clock on PA8 for F1 series.

Example:

Code: Select all

#include "STM32mco.h" // Must be the first line in sketch

void setup() {
  HAL_RCC_MCOConfig(RCC_MCO, RCC_MCO1SOURCE_HSE, RCC_MCODIV_1); // Must be the first line in Setup()
}

void loop() {
}
Attachments
STM32mco.rar
(84.13 KiB) Downloaded 27 times
Last edited by Amirebr on Thu May 11, 2017 10:46 am, edited 2 times in total.

User avatar
RogerClark
Posts: 7432
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: STM32F103 Clock Out on Pin PA8

Post by RogerClark » Thu May 11, 2017 1:34 am

Thanks

Could be handy for anyone playing with the OV7670 (or similar) CCD video camera, as it requires an external clock

User avatar
Amirebr
Posts: 2
Joined: Tue May 24, 2016 9:13 pm
Location: Iran

Re: STM32F103 Clock Out on Pin PA8

Post by Amirebr » Thu May 11, 2017 7:33 am

RogerClark wrote:Thanks

Could be handy for anyone playing with the OV7670 (or similar) CCD video camera, as it requires an external clock
It's also useful to drive other MCUs, Audio codecs, and other peripherals on the main board that need a synced clock to the main MCU.

User avatar
RogerClark
Posts: 7432
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: STM32F103 Clock Out on Pin PA8

Post by RogerClark » Thu May 11, 2017 10:03 am

Yes. Driving other MCU's or anything else that needs to be kept in sync with the STM32

Post Reply