My question concerns the using of the timerafter event. I suspect that the event sometimes is fired unintentionally.
Here is the code:
Code: Select all
case (enableTimer > 0) => detectTimer when timerafter(actualTime + USEC(3650)) :> void:
Code: Select all
case detectPort when pinsneq(portLevel) :> void:
detectPort :> portLevel;
detectTimer :> actualTime;
Can someone explain what happens when the (actualTime + USEC(3650)) overflows the unsigned size ?
Are there other causes than may explain the problem?
Thanks!
Martin