At 07:48 PM 5/23/2006 +0100, you wrote: >The watchdog timer was the problem, seems it is on by default and I >had not specified it in the config statement. > >My config now looks like > > __config _INTRC_OSC_NOCLKOUT & _PWRTE_ON & _BODEN_ON & _WDT_OFF > >What more switches have I missed? >Goran Look at the data sheet for "Configuration Bits" (at the include file too for the names). There are a few more to consider. ;-) BTW, you should be setting up CMCON as well, to disable the comparator, although it doesn't happen to make much difference in this case. Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com ->>Test equipment, parts OLED displys http://search.ebay.com/_W0QQsassZspeff -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist