Skip to main content
Endika Caño de Miguel
Associate III
June 7, 2017
Question

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

  • June 7, 2017
  • 2 replies
  • 526 views
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
This topic has been closed for replies.

2 replies

waclawek.jan
Super User
June 7, 2017
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

Endika Caño de Miguel
Associate III
June 7, 2017
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