Tool Tip: Microcontroller Timer Calculator

uC_timer_calculator

In life and embedded systems timing is everything. Give [Frank’s] web-based timer calculator a try. Set your system clock resolution (in hertz making sure you account for any system clock divider), select your timer resolution and prescaler, then calculate based on desired ticks, overflows, or real time. He’s built this with the AVR chips in mind but it should be handy for any family of microcontrollers.

Of course none of this is rocket science, but if you’re trying to use one timer for two differently synchronized events this can save you a lot of trial and error time.

11 thoughts on “Tool Tip: Microcontroller Timer Calculator

  1. This is one of those simple things that’s incredibly useful. Calculating timer constants by hand is a real pain – half the time you end up dividing something where you should have multiplied, or you forget to take into account the overflow, or something else. Stuff like this is really helpful.

  2. Yeah very usefull indeed.
    Altough, I would be a bit nervous about precision. I’m used to PIC microcontroller and I have a spreadsheet that I update each time I use a new family. Every single time there is a new pre or post scaler with or without PLL etc…
    But once you verified that it actually works with the device you use, it is indeed a very useful tool.

    Nice !
    JF

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.