Marcel Hendrix <
m...@iae.nl> writes:
>> > is there any modern Forth, wich has a timer/TICKER
>> > with at least 1ms resolution? ...
> I originally read it as a timer which can fire once every ms. Maybe
> it is indeed meant to be a timer which can fire at times accurate to
> within a millisecond.
I saw the request as 1ms resolution, which is what it says. Resolution
is not accuracy though I'd expect that if you ask for 37msec, then on
the average you will get close to that.
Linux with the realtime scheduler can probably do 1ms and 1khz but not
much more than that. OP, what is the hardware environment and OS (if
any) that you want to run in?
> Both cases are potentially difficult when Forth runs stand alone.
In standalone it seems doable, again if you are willing to tolerate a
bit of jitter. The Raspberry Pi Pico running at 125MHz can do a lot in
1ms. The Teensy 4.x at 600MHz can do even more.