Do you have a question? Post it now! No Registration Necessary
- Captain Dondo
February 10, 2006, 12:09 am

I came across a little bit of C code that uses a T4 timer.... From
googling about, I've found that there are (or may be) t1, t2, t3, t4 timers.
Are these more-or-less standard? Where can I find out about them?
From looking at the code, it looks as though the timer uses 40 bits and
runs quite fast. The 40 bits are stored as one unsigned long for the
low-order bits and th elower 8 bits of second unsigned long for the
high-order 8 bits.
I'm really interested in the time difference between two events, so I'd
like to use this timer, but given that it seems to run quite fast, and
that my uptime may be measured in months or possibly years, I need to
handle timer rollover.
Any suggestions on handling rollover with a 40 bit timer? I'm not as
familiar with handling this kind of logic as I should be....
TIA,
--Yan
googling about, I've found that there are (or may be) t1, t2, t3, t4 timers.
Are these more-or-less standard? Where can I find out about them?
From looking at the code, it looks as though the timer uses 40 bits and
runs quite fast. The 40 bits are stored as one unsigned long for the
low-order bits and th elower 8 bits of second unsigned long for the
high-order 8 bits.
I'm really interested in the time difference between two events, so I'd
like to use this timer, but given that it seems to run quite fast, and
that my uptime may be measured in months or possibly years, I need to
handle timer rollover.
Any suggestions on handling rollover with a 40 bit timer? I'm not as
familiar with handling this kind of logic as I should be....
TIA,
--Yan
Site Timeline
- » linux embbeded system
- — Next thread in » Embedded Linux
-
- » How to get Daemon to dump core on segfault
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Javascript help with iframes
- — The site's Newest Thread. Posted in » Electronics Design
-
- » Matériel électronique à céder, quel "j uste" prix... ? Conseils éventuels ...
- — The site's Last Updated Thread. Posted in » Electronics (French)
-