>-----Original Message----- >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] >Sent: 13 May 2005 01:28 >To: piclist@mit.edu >Subject: [PIC] strange problem > > > >typedef unsigned int config; >config at 0x2007 __CONFIG = _HS_OSC & >_WDT_OFF & >_PWRTE_ON ; Just a thought, have you tried importing the hex file into MPLAB and actually checking the fuse values that the compiler has generated? Try including a CLRWDT command in your while(1) loop just to check (I'm not sure how you achieve this with SDCC, but if it allows inline assembly it should be easy). Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist