Hello, I'm looking for a routine that I can plug into my code that will provide a delay of around three seconds, although a universal timing routine would be nice where I could plug in a number between 1 and 255 and get some kind of delay out of it. I don't need to be doing anything during the time delay so it doesn't have to be interrupt driven. I'm using the PIC16C58 in RC clock mode with R=10K and C=22pF. According to my calculations, that should create a 2.2 MHz clock internal to the PIC, and should result in an instruction cycle rate of 555 KHz. To confirm this, I put the scope on the OSC2 output and the frequency was wandering all over the place. The highest frequency I measured was 117 Hz (way off from what I'd expect, obviously). I'm not too concerned about timing accuracy, just as long as it's somewhere in the ballpark... I can't expect too much with an RC circuit anyways. Thanks, Dave