Home |
RTKernel-32 Programming Manual Multitasking, Real-Time, and RTKernel-32 Alternate APIs for RTKernel-32 Driver HRTSC520 Preconfigured Driver Library Drvrt32.lib |
Driver HRTSC520Driver HRTSC520 uses the Software Timer of the AMD Élan SC520 CPU to deliver times with 1 microsecond resolution. By default, the driver assumes a system clock of 33.333MHz. If you use a 33.0MHz clock, be sure to include MOVESB SWTMRCFG 1 in the Sc520ini.cfg file. This driver is incompatible with the default driver Clkhrtpc.lib, which is also included in Drvrt32.lib. To use it, link libraries Hrtsc520.lib, Clkpc.lib, and Drvrt32.lib in this order. Note that the Software Timer of the Élan SC520 only covers a time period of about 65 seconds. Applications which need to measure time periods longer than 65 seconds must ensure that FTReadTime is called during the measurement at least every 65 seconds to allow the timer driver to update its internal time value in RAM. This is best achieved by including a call to FTReadTime in a low priority time cyclic task which has a cycle time of less than 65 seconds.
|