Post by Christian WilliamsonI'd like to make the clock on VxWorks run faster than one sixtieth of a
second. Anybody done this before?
Yes, certainly. The system clock rate is set using sysClkRateSet(). The
allowable range of system clock rate is specified by the macros
SYS_CLOCK_RATE_MIN and SYS_CLK_RATE_MAX in the BSP's config.h file.
Post by Christian WilliamsonWhat effects does it have on VxWorks'
own tasks?
None, when using priority premptive scheduling which is the default
scheduling algorithm. When using round-robin scheduling (sometimes
called time slicing) a faster system clock rate increases scheduling
resolution just as the resolution of all timed processes is increased.
The cost of an increased system clock rate is increased timer ISR
overhead. Whether this is a problem depends on system performance and
loading. I've run 40 MHz MPC860 systems' system clocks at 1000 Hz in
order to get millisecond resolution without difficulty.
--
========================================================================
Michael Kesti | "And like, one and one don't make
| two, one and one make one."
mrkesti at hotmail dot com | - The Who, Bargain