↧
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 ArticleAnswer 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 ArticleTimer 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
More Pages to Explore .....