cancel
Showing results for 
Search instead for 
Did you mean: 

External oscillator input

Welcome_123
Associate II

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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.

 

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.

View solution in original post

17 REPLIES 17
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

MCU Part no STM32G0C1KCU6


@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

 

STTwo-32
ST Employee

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.


@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?

 

Hi @Welcome_123 ,

In this product, LSE and HSE  are sharing the same pins and you can use HSE with an external Crystal oscillator on PC14 (HSE) in Bypass mode with 16MHz but you can't use LSE anymore:

SofLit_0-1729245491965.png

These are the frequency ranges for HSE:

SofLit_1-1729245580344.png

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.

@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...

Andrew Neil      

MCU partno is STM32G0C1KCU6   can 48MHz or 16MHz external clock source connected to   Pin 2 (PC14-OSC32_IN)?

I've already answered that question:

SofLit_0-1729246196698.png

You have a range of 4 to 48MHz as OSC_IN input frequency.

 

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.