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

Search:

Type: Posts; User: PaulStoffregen

Search: Search took 0.03 seconds.

  1. Replies
    45
    Views
    7,636

    More speedup in micros() might be possible if the...

    More speedup in micros() might be possible if the 3 state variables are put into a struct. That way the compiler only has to load a single address to access all 3. But that might break other code...
  2. Replies
    45
    Views
    7,636

    It's a subtle timing problem. When the elapsed...

    It's a subtle timing problem. When the elapsed time between handling milliseconds and cycle count is different in the systick interrupt than what the main program does, the result is a small error...
  3. Replies
    45
    Views
    7,636

    That's normal, even though Arduino's description...

    That's normal, even though Arduino's description "Global variables" doesn't really apply to the much more complex memory structure on this chip.

    The larger memory use comes mostly from 2 places.
    ...
  4. Replies
    45
    Views
    7,636

    As far as I know, no bugs have been found with...

    As far as I know, no bugs have been found with millis().

    However, micros() had at least 2 bugs. Neither is new. These have been with us since Teensy 4.0 release.

    Functions like delay() which...
  5. Replies
    45
    Views
    7,636

    Ok, I've put this on my list of bugs to fix. ...

    Ok, I've put this on my list of bugs to fix.

    But since the errors are so small and only happen at certain slower CPU speeds, I'm going to work on this later.
Results 1 to 5 of 5