Re: >In an effort to try to debug the program that I am having trouble with, I >have stripped it down to the very basic essentials. It is now a program etc. Again, you have a typo: > while(1) // loop forever > { > RC6=1; > DelayMs(2) ; > if (RA4 = 1) > { .. should be if (RA4 == 1) Anyway, your _existing_ program toggles RD7 and RD6 every 92us on a PIC16C77 @ 20MHz. If you are running with a _crystal_, then there are a variety of reasons why it might not start, though frankly I've never had any problems with PICs and xtals. If you're running with an external oscillator-in-a-can (like what's on the PICDEM-2 board), that eliminates yet more variables. The schematic in our Assembly Guide AG-1 available on our website may be useful to you ... One problem I've had with windowed parts is that they behave very strangely if they are nut fully UV erased prior to (re-)programming. You don't mention what your "board" is ... -- ______________________________________ Andrew E. Kalman, Ph.D. Salvo(TM), The RTOS that runs in tiny places(TM) Pumpkin, Inc. 750 Naples Street San Francisco, CA 94112 tel: (415) 584-6360 fax: (415) 585-7948 web: http://www.pumpkininc.com email: aek@pumpkininc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics