On Tue, Jan 20, 2009 at 3:51 PM, 4e fte <4eftefj@gmail.com> wrote: > I have seen some examples of 1s delay with a 32KHz or 4MHz frequencies > but am still confused about how to produce this with 20MHz. Could > someone please assist me on this? Thanks. You can try using this tool: http://www.piclist.com/techref/piclist/codegen/delay.htm if you're using assembler. Here, I generated it: http://pastebin.com/f5b0700e4 Just a question, why are you using such an old chip? There a lot newer chips which sport more advanced features for lower prices, such as the 16F886. -- solarwind -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist