cancel
Showing results for 
Search instead for 
Did you mean: 

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

HWorl.1
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Nikita91
Lead II

Set the GPIO output in high speed with GPIOx_OSPEEDR register ?

View solution in original post

2 REPLIES 2
Nikita91
Lead II

Set the GPIO output in high speed with GPIOx_OSPEEDR register ?

HWorl.1
Associate II

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.