Shop OBEX P1 Docs P2 Docs Learn Events
Calculating Interrupt timings.. — Parallax Forums

Calculating Interrupt timings..

dufflingduffling Posts: 73
edited 2005-04-04 02:43 in General Discussion
Im wondering if anyone has written a utility to help in calculating interrupt timing , and other Cpu cycle timing issues..

as i often need to have precise interrupts at 1ms , or greater timing intervals..

just wondering!

Comments

  • JonbJonb Posts: 146
    edited 2005-04-02 10:48
    Good question hop.gif

    A utility or even a spreadsheet would be useful to have. I'm wondering too!





    Post Edited (Jonb) : 4/2/2005 11:25:37 AM GMT
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-04-02 16:31
    Hi,

    I did a "quick-and-dirty" Excel spreadsheet. allowing you to enter the SX clock frequency. The interrupt call periods and frequencies will then be calculated for all possible RTCC initializations, and shown in the spreadsheet.

    Not very sophisticated but I hope it helps a bit.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • BeanBean Posts: 8,129
    edited 2005-04-02 17:05
    Guenther,
    He was asking about a 1ms interrupt rate. Could you add a field for the prescaler ?
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video Display Module" Available Now.

    www.sxvm.com

    "A problem well defined, is a problem·half solved."
    ·
  • PLJackPLJack Posts: 398
    edited 2005-04-02 18:48
    I've just started with SX chips.

    If someone wants to clue me in on the math I would be happy to
    write a software utility.

    Jack
  • dufflingduffling Posts: 73
    edited 2005-04-02 19:45
    Wow very cool sounds like a few people would find it useful .. i could write one also but i fear my knowledge of the calculations is not good enough at present ..
  • PLJackPLJack Posts: 398
    edited 2005-04-03 09:06
    It would make a nice distraction from my current software project.

    Plus, I will need a util like that soon.

    Jack
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-04-03 15:14
    Bean,

    good point - I have added a field for the prescaler.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • James NewtonJames Newton Posts: 329
    edited 2005-04-03 23:58
    Have you guys ever heard of google?

    http://www.google.com/search?hl=en&q=sx+isr+calculator

    Or of sxlist.com?

    http://www.sxlist.com/techref/scenix/isrcalc.asp
    http://www.sxlist.com/techref/scenix/isrcalc.htm

    In fact, most of the issues that have been raised here lately have been well covered at the sxlist.com site already. Really. Its there. And if it isn't, I add it after it is discussed here.

    Did you know SXList.com has almost 3GB of content? Think of SXList.com as the collected information from all the best threads both here and from the ~2000 member, ~80 posts a day MIT PICList. The search engine on sxlist.com indexes the entire archive from that list. About 2GB of content from PIC and (some) SX users. Since SX's are high speed PIC 16C5x's most issues have been covered on that forum already. Really!

    Try it out!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ---
    James Newton, Host of SXList.com
    james@sxlist.com 1-619-652-0593 fax:1-208-279-8767
    SX FAQ / Code / Tutorials / Documentation:
    http://www.sxlist.com Pick faster!



  • JonbJonb Posts: 146
    edited 2005-04-04 02:43
    I've spent many hours on sxlist and never saw that blush.gif

    Thanks Gunther and James for enlightening us.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Post Edited (Jonb) : 4/4/2005 2:54:32 AM GMT
Sign In or Register to comment.