Quantcast
Channel: Timer rollover handling - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by old_timer for Timer rollover handling

If it is an upcounter for example I will typicallyelapsed = ((nowtime-starttime)&MASK)+(rollovers<<SIZE);so long as you sample often enough (many times per rollover) for an upcounter of...

View Article


Answer by nerdfever.com for Timer rollover handling

I think I've almost solved this myself:UINT64 Rtc(void){ UINT64 softwareTimer = SwRTC; UINT32 lowOrderBits = softwareTimer; // just take low-order 32 bits UINT64 coreTimer = ReadCoreTimer(); if...

View Article

Timer rollover handling

I have a 32 bit hardware timer that I'd like to extend to 64 bit effective length in software.In my embedded system, I have available a 32-bit hardware "core timer" (CT) that ticks at ~ 40 MHz, so it...

View Article
Browsing all 3 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>