Skip to main content
MMala.3
Associate II
April 2, 2023
Solved

STM32G030K6T6 oscillator pins

  • April 2, 2023
  • 3 replies
  • 3000 views

As per datasheet pin 2 and pin 3 are OSC32_IN and OSC32_OUT pins I want to connect a 8MHZ crystal and was looking for OSC_IN and OSC_OUT pins, but could not find any info regarding them, can the OSC32_IN and OSC32_OUT pins be used for connecting the 8Mhz crystal?

0693W00000bhMAbQAM.png

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    >>can the OSC32_IN and OSC32_OUT pins be used for connecting the 8Mhz crystal?

    No, It's for a 32.768 KHz source

    You'll typically need a 48-pin device with OSC_IN / PF0 and OSC_OUT / PF1

    On the 32-pin device PC14 has additional functions OSC_IN, PC15 as OSC_EN

    It won't oscillate a crystal, so you'll need an CXO / TCXO source

    3 replies

    MMala.3
    MMala.3Author
    Associate II
    April 2, 2023

    0693W00000bhMAWQA2.png

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    April 2, 2023

    >>can the OSC32_IN and OSC32_OUT pins be used for connecting the 8Mhz crystal?

    No, It's for a 32.768 KHz source

    You'll typically need a 48-pin device with OSC_IN / PF0 and OSC_OUT / PF1

    On the 32-pin device PC14 has additional functions OSC_IN, PC15 as OSC_EN

    It won't oscillate a crystal, so you'll need an CXO / TCXO source

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    MMala.3
    MMala.3Author
    Associate II
    April 2, 2023

    Thanks for the info.

    I saw a board on newegg

    They were using similar series mcu STM32G0 but TSSOP package and I wondered how they were doing the crystal connections.

    Maybe they are doing what you suggested using CXO/TCXO source.

    What is the OSC_EN pin for? Is it needed for the crystal operation?

    0693W00000bhME9QAM.png

    Tesla DeLorean
    Guru
    April 2, 2023

    STM32F070F6P6

    https://www.st.com/resource/en/datasheet/stm32f070f6.pdf

    Yes, that's a different part which does have OSC_IN / OSC_OUT pins

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    MMala.3
    MMala.3Author
    Associate II
    April 3, 2023

    I rechecked the link

    https://www.newegg.com/p/2SW-006N-009V3

    and it was for the STM32G030F6P6 part.

    I saw the datasheet and it has only the OSC_IN pin at pin2 and no OSC_OUT pin.