Hello
how to set the timer to get the frequency
1.7 MHz on Stm32f103c8t6, core v1.9.0?
thank
1.7 MHz Generation
Re: 1.7 MHz Generation
EDITED
sorry for misunderstanding
if you need to configure your timer to exact 1.7M frequency you need to use smth like
when you configure yr timer instance
sorry for misunderstanding
if you need to configure your timer to exact 1.7M frequency you need to use smth like
Code: Select all
MyTim->setOverflow(1700000, HERTZ_FORMAT);
Last edited by stas2z on Fri May 29, 2020 5:49 am, edited 2 times in total.
Re: 1.7 MHz Generation
Review this information: https://github.com/stm32duino/wiki/wiki ... er-library
Note that 1.7mhz is not an integer multiple of 72 megahertz, so about as close as you can get is 72 / 42 = 1.714 Mhz.
Note that 1.7mhz is not an integer multiple of 72 megahertz, so about as close as you can get is 72 / 42 = 1.714 Mhz.