cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate 8MHz out of a pin with STM32 L476RG?

Endika Caño de Miguel
Associate II
Posted on June 07, 2017 at 09:12

Hello:

I�m new using this kind of devices and I have to generate 8MHz signal to take it out through a pin but I don�t know 

how. I�m using Eclipse work bench (SW4STM32) to do so. Please, could someone help me please?  Thank you in advance.

#generate #stm32-l4 #8mhz
2 REPLIES 2
Posted on June 07, 2017 at 10:06

There are several ways to tackle this - you can use MCO with a divider, see the RCC chapter in RM, or a timer generating PWM, see the timer chapters in RM.

In any case you'll need to learn how to set the respective GPIO pin to the proper alternative function, see the GPIO chapter in RM.

You may want to start with something simpler, such as a delay-based blinky.

JW

Posted on June 07, 2017 at 12:50

Thank you, I´ve been looking for it and I think I´m going to do it with the timer