This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GP timer inaccuracy

Guru 20755 points
Other Parts Discussed in Thread: OMAP3530

Hello,

We have some issue with gp timer accuracy with OMAP3530.

I searched to see ig there is any information on this subject but didn't find.

1. We observed that when prescalver is 0, there is inaccuracy (if timer is streached to 32678 ticks, each tick period is 1/32.768Khz, then we get 0x608msec instead of 1 second), when we changed the prescaler to 10, we got reasonable accuracy.

2. We also see that when gp timer is used without autoreload the interrupt is added delay of 4msec(interrupt time = dm_timer_init_value+4msec), and when we use reload option it is added delay of 10usec (interrupt time = dm_timer_init_value+10usec) .

We used gettimeofday() for time check. 

Is there any explanation for the above issues (accuracy dependency on prescaler value, and interrupt added latency) ?

Regards,

Ran