#define CLK_SPEED 10 WAIT macro delay ;wait for delay micro seconds local count = 0 while count < (((delay)* CLK_SPEED+3)/4) ;instructions per us = clock speed/4 (always round up) nop count +=1 endw endm -- Dr. Chris Kirtley MD PhD Associate Professor HomeCare Technologies for the 21st Century (Whitaker Foundation) NIDRR Rehabilitation Engineering Research Center on TeleRehabilitation Dept. of Biomedical Engineering, Pangborn 105B Catholic University of America 620 Michigan Ave NE Washington, DC 20064 Tel. 202-319-6247, fax 202-319-4287 Email: kirtley@cua.edu http://engineering.cua.edu/biomedical Clinical Gait Analysis: http://guardian.curtin.edu.au/cga Send subscribe/unsubscribe to listproc@info.curtin.edu.au -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics