1.7 MHz Generation

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
pokemon99
Posts: 1
Joined: Thu May 28, 2020 6:33 pm

1.7 MHz Generation

Post by pokemon99 »

Hello
how to set the timer to get the frequency
1.7 MHz on Stm32f103c8t6, core v1.9.0?
thank
stas2z
Posts: 131
Joined: Mon Feb 24, 2020 8:17 pm
Answers: 8

Re: 1.7 MHz Generation

Post by stas2z »

EDITED

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);
when you configure yr timer instance
Last edited by stas2z on Fri May 29, 2020 5:49 am, edited 2 times in total.
fredbox
Posts: 125
Joined: Thu Dec 19, 2019 3:05 am
Answers: 2

Re: 1.7 MHz Generation

Post by fredbox »

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.
Post Reply

Return to “General discussion”