At 08:40 AM 9/5/01 +1000, you wrote: >Dave Vanee wrote: >> >> Hello, >> I'm trying to make a simple timing loop which will run more than 255 >> times. I need 0.1us precision, so I'm using inline asm in a PICbasic >> program. The number of times the loop will run will vary from 0 to 9999. >> I'm using a 20MHz clock speed. > >At 20MHz you won't be able to get 0.1uS precision. The instruction >execution time is 0.2uS. Hmm.. the *resolution* is 200ns, but the *precision* may be quite a bit better. Best regards, =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com Contributions invited->The AVR-gcc FAQ is at: http://www.bluecollarlinux.com =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads