>This same delay routine is working flawlessly in other applications. > >I simply can not see how there can be anything wrong with an already proven >delay routine and one that seems to be working in this application. This then implies that somewhere else in your code, there is an access to the counter variable that should not be there. Try doing something as simple as using your editor to search for all instances of the variable name. You may be surprised where it pops up :) -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body