Re: Periodic Timer for 1 millisecond



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

.