Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: joepasquariello

Search: Search took 0.00 seconds.

  1. millis() provides 1 ms accuracy. If you want to...

    millis() provides 1 ms accuracy. If you want to test the accuracy of IntervalTimer, read the ARM cycle counter in your callback function, compute the difference between cycle count values, and then...
  2. elapsedMillis uses millis(), and millis() simply...

    elapsedMillis uses millis(), and millis() simply returns systick_count, which is updated in the ISR for the ARM SysTick timer. The Teensy4 systick_isr() from EventResponder.cpp and millis() from...
  3. Check the source. Think there might be only two....

    Check the source. Think there might be only two. Is there any relationship between the 4 frequencies that would allow one time to support more than one frequency?
  4. It's part of the Teensy4 core, not a library (see...

    It's part of the Teensy4 core, not a library (see cores\Teensy4\IntervalTimer.cpp). It's a 32-bit timer, and it has a maximum interval of more than 178 sec.
  5. I'm having a hard time imagining what is your...

    I'm having a hard time imagining what is your objective. Can you say more about what you're trying to do, and why you need nanosecond precision? You may be able to get the 3 x 16-bit timer method to...
  6. Have you tried IntervalTimer, as shown below? It...

    Have you tried IntervalTimer, as shown below? It supports a maximum interval of about 178 seconds, so it seems to work fine at 60 seconds. To ensure minimum delay I've shown how to set to highest...
  7. Do you mean that you want to get an interrupt...

    Do you mean that you want to get an interrupt when the timers each have a specific value, such as T0=X, T1=Y, T2=Z? I don't think there is a way to do that.

    Can you say more about what you're...
Results 1 to 7 of 7