How to handle "cnt" overflows ?
DavidGreg
Posts: 38
Is the following construct valid? Will it handle CNT overflow?
Post Edited By Moderator (Bean (Hitt Consulting)) : 11/18/2009 2:59:13 PM GMT
repeat counter1 := cnt + CLKFREQ/2 doSomething() repeat until (cnt > counter1) counter2 := cnt + CLKFREQ/20 doSomethingElse() waitcnt(counter2)
Post Edited By Moderator (Bean (Hitt Consulting)) : 11/18/2009 2:59:13 PM GMT
Comments
-Phil