How to get Clock Resolution Greater than 500 us with the RTP

Hi All!,

I need to be able to wake up a process every 100 us. I know that the
current version of QNX RTP onlyt support a minimum 500 us resulution on the
timers. On the current Single Board Computer we are currently using I
manage to achieve this by using the external RTC on the PCI bus that is
unique to this VME board. I have a interrrupt that is generated every 100
us that wakes up my process. The problem now, is I need to this on a new
SBC that does not have a external RTC. We need to change SBC since the new
project requires extended temperature range of operation and the curretn SBC
doesn’t support it.

Is there any plan to increase the timer resolution of the QNX kernal (RTP
6.1 and up) to at least 100 us in the near future?, this would permit us to
have more flexibilty in boards selection in the future, since it would
remove the dependency on this 100 us requirements from the board HW.

Thanks in Advances for any answers

Cheers!, Steph

Hi,
It was rumoured there will 10 uS the best resolutions in 6.2. If your new board has built-in AT
compatible RTC, you could use it (some pc/104 boards have it as well as wide temperature range).
But highest frequency for periodic RTC interrupts in AT is 8192Hz, period is ~122 uS.
Cheers.

Eduard.
ed1k at ukr dot net

Stephane Grenier <sgrenier@excalibur.com> wrote in article <adfu8i$4ir$1@inn.qnx.com>…

Hi All!,

I need to be able to wake up a process every 100 us. I know that the
current version of QNX RTP onlyt support a minimum 500 us resulution on the
timers. On the current Single Board Computer we are currently using I
manage to achieve this by using the external RTC on the PCI bus that is
unique to this VME board. I have a interrrupt that is generated every 100
us that wakes up my process. The problem now, is I need to this on a new
SBC that does not have a external RTC. We need to change SBC since the new
project requires extended temperature range of operation and the curretn SBC
doesn’t support it.

Is there any plan to increase the timer resolution of the QNX kernal (RTP
6.1 and up) to at least 100 us in the near future?, this would permit us to
have more flexibilty in boards selection in the future, since it would
remove the dependency on this 100 us requirements from the board HW.

Thanks in Advances for any answers

Cheers!, Steph

Stephane Grenier <sgrenier@excalibur.com> wrote:

Hi All!,

Is there any plan to increase the timer resolution of the QNX kernal (RTP
6.1 and up) to at least 100 us in the near future?, this would permit us to
have more flexibilty in boards selection in the future, since it would
remove the dependency on this 100 us requirements from the board HW.

With 6.2, you can set the system time resolution down to at least 100 us.
(On my test system, I asked for 100 us, I got 99733 ns.)

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Sorry for this newbie question.How can i set the clock resolution ? I see
only clock_getres() function in the library reference.There is no
clock_setres() ?.And btw my clock_getres() always returns 1000
microseconds(not 500 as mentioned in this thread).

Thanks

Sreekanth
“David Gibbs” <dagibbs@qnx.com> wrote in message
news:adg3ha$9pq$2@nntp.qnx.com

Stephane Grenier <> sgrenier@excalibur.com> > wrote:
Hi All!,

Is there any plan to increase the timer resolution of the QNX kernal
(RTP
6.1 and up) to at least 100 us in the near future?, this would permit us
to
have more flexibilty in boards selection in the future, since it would
remove the dependency on this 100 us requirements from the board HW.

With 6.2, you can set the system time resolution down to at least 100 us.
(On my test system, I asked for 100 us, I got 99733 ns.)

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Look at ClockPeriod():


http://www.qnx.com/developer/docs/momentics_nc_docs/neutrino/lib_ref/c/clock
period.html


Jens
“Sreekanth” <sreekanth@cambira.com> wrote in message
news:adldnf$8t7$1@inn.qnx.com

Sorry for this newbie question.How can i set the clock resolution ? I see
only clock_getres() function in the library reference.There is no
clock_setres() ?.And btw my clock_getres() always returns 1000
microseconds(not 500 as mentioned in this thread).

Thanks

Sreekanth
“David Gibbs” <> dagibbs@qnx.com> > wrote in message
news:adg3ha$9pq$> 2@nntp.qnx.com> …
Stephane Grenier <> sgrenier@excalibur.com> > wrote:
Hi All!,

Is there any plan to increase the timer resolution of the QNX kernal
(RTP
6.1 and up) to at least 100 us in the near future?, this would permit
us
to
have more flexibilty in boards selection in the future, since it would
remove the dependency on this 100 us requirements from the board HW.

With 6.2, you can set the system time resolution down to at least 100
us.
(On my test system, I asked for 100 us, I got 99733 ns.)

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.