On Sat, 3 Feb 2001, Drew Vassallo wrote: > Date: Sat, 3 Feb 2001 21:59:23 -0500 > From: Drew Vassallo > Reply-To: pic microcontroller discussion list > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: delay > > >20 Mhz is 200nS per instruction cycle. You are making 90 passes through > >four cycle loop. > > > >200nS*90*4=72uS, 72.8 with overhead. > > Actually, the code below would be 72.6us with overhead (the last time > through the loop, the 'goto' is only a one-cycle nop). Thanks, I was including the call but forgetting the skip... but what's a couple hundred light-feet? > > > delay movlw .90 > > > movwf LOOPD > > > repeat nop > > > decfsz LOOPD > > > goto repeat > > > return > > --Andrew > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body