At 10:57 PM 11/30/99 +0100, Auracher J|r wrote: >hello . > >im using an Pic with an Xtal of 4Mhz and an delay routine that takes >4*250 cycles >this is an delay of 1ms > I've found the best way to time these type of delays is using the MPLAB software. Set breakpoints where you think your timing should occur and under windows there's something called 'stopwatch' that will give you precise timing as to how long things are taking. You can reset it to 0 at the begining of your delay or subtract start and stop times. Your problem is probably not taking into account the fact that jumps (and therefore branches) take 2 instructions. I've screwed up my timing routines this way quite a few times. -Erik Reikes >I measure these time and the output frequency is 625hz (1.6kHz) > >my anwers: could the Cext=22pF (Capacitor between xtal and gnd) be to >low > or is this a problem in my programm (i disabled Wdt / >Gie)? > > > > >__________________________________________________ >Do You Yahoo!? >Thousands of Stores. Millions of Products. All in one place. >Yahoo! Shopping: http://shopping.yahoo.com