Hi, I would like to know why the latency in one while loop is very big.
Heres the snippet:
While (Echo == 0)
// TICS prescale set to 2
{
If (TICS.MSB == 1 And Echo == 0)
{
Count = TICS.Count;
If (Count < 65535)
{
Count = Count+65535;
}
//Print.Clear;
Print.Locate(1,0);
Print.VString = "timeout " + Str$(Count) + " " + Str$((Count / 10)
* 8) + " us";
Timeout = 1;
Break;
}
}
I'm making an home-made ultrasonic ranger, which requires the use of
the OOPic and as much preciseness as it can be. For example, just for
this to loop once, TICS will increase by 2000 counts. is that normal?
Would writing this in Visual Basic have better results?
Thanks.
Ray Xu
r...@tx.rr.com
------------------------------------

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )