Be careful while using TIMEOUT - you may get fuzzy results.

Have a look here http://www.picbasic.co.uk/forum/show...1443#post91443.