teensy3056
Active member
Reading about all the clocks in the Teensy 3.6 leads me to believe that there is not a "reference clock" available for use in the microcontroller for use.
By "reference clock" I mean a clock which continuously writes to a register so that the program may refer to that register so as to have an accurate, real-time understanding of the passage of time, regardless of what else the microcontroller is doing, including peripheral interfacing and ISR usage.
I can find no Teensy 3.6 register which counts the "ticks" of any of the many clocks derived from the 16 MHz and 32.768 kHz crystals.
Even considering the 180 MHz PLL source, two 32-bit registers would last for more than 6,000 years before rollover.
I surmise that there is some well grounded reason that such a thing does not exist, and of which I am unaware.
By "reference clock" I mean a clock which continuously writes to a register so that the program may refer to that register so as to have an accurate, real-time understanding of the passage of time, regardless of what else the microcontroller is doing, including peripheral interfacing and ISR usage.
I can find no Teensy 3.6 register which counts the "ticks" of any of the many clocks derived from the 16 MHz and 32.768 kHz crystals.
Even considering the 180 MHz PLL source, two 32-bit registers would last for more than 6,000 years before rollover.
I surmise that there is some well grounded reason that such a thing does not exist, and of which I am unaware.