> Using a basic compiled program using a for-next loop, a flash PICchip. > can I expect toget a pulse every 55 ms. or about 18pulses per second? > > I know a lot of it will depend on what speed I am running the chip at. Wow. As open ended a question as I've ever seen. There are literally hundreds of ways to solve this. In Basic, though, you will have a much harder time than just sussing out how to do it in assembler. Best is if your Basic compiler lets you drop inline assembly into your code (see the Asm/EndAsm directives in PicBasic). Have you considered setting up an interrupt to occur? 55 ms should be well within the grasp of most timer based interrupts, and then you don't need to worry about timing once you've started it up. What do you need to do? Mike H. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist