1kHz timer behavior on Cyclone V
joel at rtems.org
Wed Dec 7 21:15:23 UTC 2016
On Wed, Dec 7, 2016 at 11:44 AM, Janet Schneider <janetsc at fb.com> wrote:
> I am running a 1kHz timer test on the Altera Cyclone V dev board. I
> am trying to measure the average time period between the timer firing, and
> any variance on that latency.
> I'm seeing an average of 1003 microseconds between the timer firing.
> About once a second, I see the maximum time between the timer firing go up
> to 2500-3000 microseconds.
> There are two sets of timers. One is per clock tick and one is per second.
My guesses are:
Do you have a sleep/delay statement in your thread?
There may be some work updating the time that occurs once per second. The
implementation of this area has changed so I don't remember offhand if this
is still the case.
I'm using rtems_clock_get_uptime_nanoseconds() to measure the time that the
> timer fires. I have CONFIGURE_MICROSECONDS_PER_TICK set to 500.
> What happens when the HW interrupt timer fires?
> Has anyone else seen this (or something similar)? Any ideas what might be
> happening here?
> users mailing list
> users at rtems.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users