Skip to main content
HWorl.1
Associate II
January 5, 2022
Solved

How to correctly configure the MCO functionality to show the signal from the HSI16 oscillator?

  • January 5, 2022
  • 2 replies
  • 1706 views

Hi,

I need to configure HSI16 oscillator and push signal from it into MCO pin. I have tried to do this, but with no positive result. The signal on the oscilloscope is unstable and does not show the 16 MHz oscillator frequency.

I put the code in the attachment. My question is what am I doing wrong, how do I fix it? In addition, I say that the signal from the MSI oscillator with a value of 2.1 MHz is correctly visible on the oscilloscope. But not for HSI16.

I use 32L0538DISCOVERY board with stm32L053C8T6 MCU.

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

Set the GPIO output in high speed with GPIOx_OSPEEDR register ?

2 replies

Nikita91
Nikita91Best answer
Lead II
January 5, 2022

Set the GPIO output in high speed with GPIOx_OSPEEDR register ?

HWorl.1
HWorl.1Author
Associate II
January 6, 2022

Hi,

Hmm ... Thanks a lot. It works. I'm a beginner and that's my stupid mistake. You actually had to configure GPIO output speed as High Speed.