Oscillators, counts, clock cycles, config settings ......& women


Results 1 to 24 of 24

Threaded View

  1. #17
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rsocor01 View Post
    The 5,000 are being counted when the program is out of the interrupt routine --> So, no interrupt lag.
    I guess I'm not grasping that - why is comp1 out of the interrupt routine?

    here's the sequence...

    Comp1 interrupts - store a number (an interrupt)

    (returns to main program)

    Comp1 interrupts again - clear a timer (another interrupt)

    (returns to main program)

    Comp2 interrupts - store a number (another albeit different interrupt)

    (returns to main program)


    could it be something specific to the Comp2 interrupt? incurring extra delay? (but that said, it's clearly not a static delay - seems to be pro rata to the incoming frequency on comp2....ie at 1000hz, the lowest number comp2 will go is 325, at 100hz the lowest number comp22 will go is about 3,000)
    Last edited by HankMcSpank; - 15th September 2010 at 08:48.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts