Hello, I m using a delphi program to send each 10ms (a digit on K8055 numerical output.
My question is first of all delphi timer is limited to 10 or 1ms? And the K8055 is limited with wich frequencies? thx for your reply.
Due to the USB communication the K8055 update interval is 10ms.
For Delphi there seems to be a timer component available.
(Not tested.)
programmersheaven.com/downlo … nload.aspx
[quote]FastTimer is a drop-in replacement for the TTimer that comes
packaged with Delphi. It allows timer events with a resolution
down to 1ms, rather than 55ms (which is the limit of the TTimer
component).[/quote]
I assume you are using the TTimer component which uses the Windows API timer functions.
In Windows 98, the timer has the same 55-msec resolution as the underlying PC timer. In Microsoft Windows NT, the resolution of the timer is about 10 msec.
A Windows application cannot receive WM_TIMER messages at a rate faster than this resolution—about 18.2 times per second under Windows 98 and about 100 times per second under Windows NT.
Note that Windows timers are not an accurate way of timing, do not think of them as hardware interrupts that fire at exactly the same interval.