I just realised, after thinking about this for a while, that it can't be a problem with my chip, or the model of the chip, because my other projects work fine on the same chip (well, not the one I borked up). Could this be something to do with the fact that I'm setting some oscillator settings in the code, so the PIC must be reset to reset the oscillator (and the code can't run and change the oscillator again because it is immeadiately held in reset)? On 5/9/05, phil B wrote: > I have seen a similar problem on the F88 (big brother > of the 87. same data sheet, anyway) and an MELABs > programmer. I've been given advice to ground the LVP > pin (and turn off LVP in the config word) but haven't > had a chance to try that though I never enabled LVP. > I always thought it was an MELABs programmer problem > but maybe not. > > Its a real pain because the F88 is a pretty nice chip. > > Phil > > Dave Turner wrote: > > Hi all, > > > > Noticed this a while ago, whilst working on my timer > > things. It has > > now become a serious problem (well, very annoying at > > least). Every > > time I run my program on my chip, I find I need to > > remove power from > > it for a second, or the MPLAB ICD2 refuses to > > program, in either > > programmer or debugger mode - it either says the > > device ID is 0, or it > > failed to verify. After unplugging the power supply > > for a second, it > > programs fine then. I have checked the PIC isn't > > damaged - it does > > exactly the same on 2 different 16F87s. It only > > apears to happen with > > one particular project - all other projects work > > absolutly fine. > > > > Also, when using the ICD2 in debug mode, after > > pausing the program > > once, if I try to restart the program, it keeps > > saying the target > > isn't in debug mode until I pull the plug for a > > second. > > > > -- > > http://www.piclist.com PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > Yahoo! Mail > Stay connected, organized, and protected. Take the tour: > http://tour.mail.yahoo.com/mailtour.html > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist