Skip to main content
FLM.1
Associate II
May 5, 2020
Solved

How to use internal clock on STM32G070CBT6

  • May 5, 2020
  • 5 replies
  • 1550 views

Hi,

I'm going to use STM32G070CBT6-LQFP48 MCU in my project.

I need to use the INTERNAL CLOCK.

Is there any application that explains how to do it or how to configure the dedicated pins?

Thanks in advance for your support.Fab

This topic has been closed for replies.
Best answer by berendi

You can configure them any way you like. They can be used as GPIO inputs or outputs, or be not connected at all.

They can only sink/source a limited amount of current, check the datasheet if you want to use them as outputs.

5 replies

TDK
May 5, 2020

Code generated from STM32CubeMX does a good job of initializing the clock based on your settings. I'd recommend starting with that.

The internal clock is in use after reset.

"If you feel a post has answered your question, please click ""Accept as Solution""."
FLM.1
FLM.1Author
Associate II
May 5, 2020

Thanks for your answer. But i mean the hardware configuration of the internal clock pins. Sorry i didn't specify it before

berendi
Principal
May 5, 2020

The internal clocks are, well, internal, so they don't have any pins.

Do you mean using the internal real-time clock with an external crystal for accuracy?

FLM.1
FLM.1Author
Associate II
May 5, 2020

Sorry again, i have expressed badly my question.

i meant if i use the internal clock, how should be configurated the external clock pins (PF0-OSC_IN; PF1-OSC_OUT;PC14-OSC32_IN;PC15-OSC32_OUT)?

should i let them floating or i need to configure them with pull down network or put them to ground?

Thanks

berendi
berendiBest answer
Principal
May 5, 2020

You can configure them any way you like. They can be used as GPIO inputs or outputs, or be not connected at all.

They can only sink/source a limited amount of current, check the datasheet if you want to use them as outputs.