Deterministic Realtime Reaction


Obviously, when you program a tm( 10 ) in your UML model, you want this timout event to occur after 10 msec, so you must understand and maybe modify the relation between the timer interrupt frequency and the scheduling of timeout events..

Your target will impose some limits, some processors have a smaller interrupt latency than others:
In an RXF using an RTOS, the heartbeat and timer are taken from the RTOS.

Tick Timer Granularity

If we have a system tick of say 20ms and we ask for a timeout of 65ms, then the resulting timeout will actually be between 80ms and 100ms, depending on when the timeout is started relative to the system tick.




If precise timeouts are required, then it is recommended to use a hardware timer in combination with triggered operations.

You need to verify the timer configuration in your RTOS configuration like WSTRTOS.c and RIC_MS_PER_TICK in WSTRTOS.h



Copyright (c) Willert Software Tools GmbH. All rights reserved.