cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate delay

achourwissem
Associate II
Posted on August 14, 2013 at 21:24

hello

how can i calculate a delay of 1 second if i have this parameters:

SYSCLK(Hz)                             | 168000000

  *-----------------------------------------------------------------------------

  *        HCLK(Hz)                               | 168000000

  *        HSE Frequency(Hz)                      | 8000000

and thnx 🙂
2 REPLIES 2
Posted on August 14, 2013 at 21:54

I guess you could spin on DWT_CYCCNT for 168000000 ticks.

Or use a timer with prescale and period factors of 16800 and 10000, this isn't complicated stuff.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
achourwissem
Associate II
Posted on August 19, 2013 at 12:06

thank you 🙂

yeah i just wanted to verify