a question about timer

If you have a simple question and just want an answer.
wildsun
New User
Posts: 3
Joined: Sun Jun 28, 2015 9:07 am

a question about timer

Post by wildsun »

A programming error may be introduced by inputting the new time instead of

ignoring it with a cast to void, as in
t when timerafter (time) :> time;
Because the processor completes the input shortly after the time specified is
reached, this operation actually increments the value of time by a small additional
amount. This amount may be compounded over multiple loop iterations, leading
to signal drift and ultimately a loss of synchronisation with a receiver.
 
XC Programming Guide P22----So, this function can be used for industrial design and control it? Accurate and longtime run~
 
srinie
XCore Addict
Posts: 158
Joined: Thu Mar 20, 2014 8:04 am

Post by srinie »

Hi,

We can use port timestamp functionality if it is based on IO events.

 

Some useful references: