Skip to main content
Associate
October 18, 2024
Solved

External oscillator input

  • October 18, 2024
  • 17 replies
  • 6028 views

In application we are using MCU part no STM32G0KCIU6 of LQFP32 / UFQFPN32 - GP package, can external oscillator of frequency 16MHz (Example: Part no ASEMB-16.000MHZ-LY-T) can be connected to pin no 2 which is dedicated for LSE clock frequency 32KHz. As per datasheet Pin assignment and description list Pin No 2 of MCU has additional options to configure as OSC_IN whether this pin can be configured for HSE requirement? Can external oscillator of frequency 16MHz can be connected to this Pin?

This topic has been closed for replies.
Best answer by mƎALLEm

With Crystal oscillator you need to use only OSC_IN  and in this package only OSC_IN is available:

SofLit_0-1729249349878.png

So you need to use a Crystal oscillator not a Crystal/resonator.

Example: https://sourcewell.in/product/crystal-oscillators/

Hope it does answer your question.

 

17 replies

mƎALLEm
ST Technical Moderator
October 18, 2024

Hello @Welcome_123 ,

There is no STM32G0KCIU6 device in ST portfolio, could you please provide the correct part number?

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Associate
October 18, 2024

MCU Part no STM32G0C1KCU6

Andrew Neil
Super User
October 18, 2024

@Welcome_123 wrote:

MCU Part no STM32G0C1KCU6


Then this is the datasheet:

AndrewNeil_0-1729244998546.png

https://www.st.com/resource/en/datasheet/stm32g0c1kc.pdf#page=83

For 16MHz, you'd need to use OSC_IN - not OSC32_IN: see correction below 

AndrewNeil_1-1729245102158.png

 

EDIT - correction:

Ah - Now I see that pin 2, PC14, can be either OSC_IN or OSC32_in - so that should be OK?

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
October 18, 2024

@Welcome_123 wrote:

MCU part no STM32G0KCIU6 


That doesn't seem to be a valid part number?

Looking at the STM32G0B1xB/xC/xE datasheet, the OSC32_IN specs are:

AndrewNeil_0-1729244405346.png

https://www.st.com/resource/en/datasheet/stm32g0b1kc.pdf#page=82

 


@Welcome_123 wrote:

 Pin No 2 of MCU has additional options to configure as OSC_IN whether this pin can be configured for HSE requirement? Can external oscillator of frequency 16MHz can be connected to this Pin?


You mean OSC32_IN ?

Check the datasheet for the part you're actually using, but it looks like a NO.

Why not use the OSC_IN pin - which is specified for high-speed use:

AndrewNeil_1-1729244645907.png

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
STTwo-32
ST Technical Moderator
October 18, 2024

I think you are toking about the STM32G0C1KCU6 or STM32G0B1KCU6, for both MCUs, the Pin 2 (PC14-OSC32_IN) can be used as OSC32_IN, OSC_IN so, you should be able to use a 16MHz oscillator on this pin.

STTwo32_0-1729244801244.png

STTwo32_0-1729245836745.png

 

Best Regards.

STTwo-32

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Andrew Neil
Super User
October 18, 2024

@STTwo-32 wrote:

 Pin 2 (PC14-OSC32_IN) can be used as OSC32_IN, OSC_IN


So it does!

But that makes Table 14 (which I cited earlier) a bit misleading: the limitation isn't on the pin (as the table suggests) - it's on whichever oscillator path its feeding...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate
October 18, 2024

yes need a crystal oscillator powered with 3.3V

Andrew Neil
Super User
October 18, 2024

You suggested one in your opening post?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
mƎALLEm
ST Technical Moderator
October 18, 2024

According to its datasheet: 

SofLit_0-1729255548560.png

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.