Hi, On Fri, May 13, 2005 at 01:24:58AM +0000, rumpelteazer666 wrote: > looks like something like that, but isn't > > config at 0x2007 __CONFIG = _HS_OSC & > _WDT_OFF & > _PWRTE_ON ; > > enough to turn it off? what can i do to check if this is due to wdt? You overlooked John's answer. :) He said look at the statement: "while(B0!=1);" This statement contains your error. Compare it to your next while statement to see what is wrong. Also, a comment on style: if you write in a language such as C, please, oh please, indent your code! If you did, I bet you would have caught this mistake. Take care, Matthew. -- "Every sensible man, every honest man, must hold the christian sect in horror. 'But what shall we substitute in its place?' you say. What? A ferocious animal has sucked the blood of my relatives. I tell you to rid yourselves of this beast and you ask me what you shall put in its place?" -- Voltaire -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist