Re: Periodic Timer for 1 millisecond
- From: "Abha" <abha.verma@xxxxxxxxx>
- Date: 19 Jun 2006 07:41:59 -0700
Hi
We are going to use Monta Vista Linux 2.4 alone .
Can I use the Time Base Register in MPC 8260 to measure the accuracy of
the Periodic timer for +/- 100 ppm?
In that case how can i perform 64 bit division with floating point
support in Linux kernel mode ?
say
----------------------------------------------------------------------------------------------------------
#define TIMEBASE_FREQ_HZ 16500000
double start_time = 0;
double end_time = 0;
start_time = getTimeBaseRegister( );
/* do some processing */
end_time = getTimeBaseRegister( );
diff = (end_time - start_time)/ TIMEBASE_FREQ_HZ
----------------------------------------------------------------------------------------------------------
Regards
Abha
.
- Follow-Ups:
- Re: Periodic Timer for 1 millisecond
- From: ask
- Re: Periodic Timer for 1 millisecond
- References:
- Periodic Timer for 1 millisecond
- From: Abha
- Re: Periodic Timer for 1 millisecond
- From: Norm Dresner
- Periodic Timer for 1 millisecond
- Prev by Date: Re: Periodic Timer for 1 millisecond
- Next by Date: Re: Newbie questions on the kernel programming
- Previous by thread: Re: Periodic Timer for 1 millisecond
- Next by thread: Re: Periodic Timer for 1 millisecond
- Index(es):