cancel
Showing results for 
Search instead for 
Did you mean: 

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

ledi7
Associate II

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.

 

2 REPLIES 2
MHoll.2
Senior

Hi,

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

Senza nome.jpg

Martin

Amel NASRI
ST Employee

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.