Skip to main content
Bastian Toulelan
Associate II
Mar 22, 2019 9:10 AM UTC
Solved

How can i supply a clock (16 Mhz for example) to an external device which has a clock_in pin using STM32Cubemx ?

..

This topic has been closed for replies.
S.Ma
S.MaBest answer
Principal
Mar 22, 2019 9:22 AM UTC

Depends. Simple would be to use MCO output which is a specific pin alternate which output one of several internal clock source with power of 2 programmable prescaling. Otherwise, simply use a timer pwm generator channel output where frequency and duty cycle is more flexible.

2 replies

S.Ma
S.MaBest answer
Principal
Mar 22, 2019 9:22 AM UTC

Depends. Simple would be to use MCO output which is a specific pin alternate which output one of several internal clock source with power of 2 programmable prescaling. Otherwise, simply use a timer pwm generator channel output where frequency and duty cycle is more flexible.

Bastian Toulelan
Associate II
Mar 22, 2019 9:46 AM UTC

Thank you very much