Skip to main content
Associate III
September 23, 2024
Solved

Is it possible to guide the HSE clock to MCO pin?

  • September 23, 2024
  • 2 replies
  • 1254 views

Hi,

I would like to use the STM32WBA55 controller and forward the clock of the HSE to the MCO pin. The data sheet states that this is only possible for internal clocks:

Clock-out capability:
– MCO (microcontroller clock output): outputs one of the internal clocks for external
use by the application. (only available in Run, Sleep and Stop mode)
– LSCO (low-speed clock output): outputs LSI or LSE in all operating modes.

According to the block diagram (see attachment), however, this should be possible.

 

Best answer by MHoll.2

Hi,

Yes this should be possible, see RCC_CFGR1 register MCOSEL bit's in RM0493:

Senza nome.jpg

Martin

2 replies

MHoll.2
MHoll.2Best answer
Senior III
September 23, 2024

Hi,

Yes this should be possible, see RCC_CFGR1 register MCOSEL bit's in RM0493:

Senza nome.jpg

Martin

Amel NASRI
Technical Moderator
September 23, 2024

Hi @ledi7 ,

To confirm the answer of @MHoll.2 , here a ready to use example: STM32CubeWBA/Projects/NUCLEO-WBA55CG/Examples_LL/RCC/RCC_OutputSystemClockOnMCO.

Check the readme file to understand how it works.

-Amel

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.