One thing that still isn't very clear to me, is if code protected OTP devices are more difficult to read out than the newer Flash parts with code protect enabled. Any ideas? Daniel... ----- Original Message ----- From: Dan Larson To: Sent: Tuesday, November 23, 1999 16:05 Subject: Re: Pic Self Destruct? > On Tue, 23 Nov 1999 11:43:37 GMT, Mike Harrison wrote: > > >The Pic16F87x series have a self-program facility that would allow it > >to erase part of its own program memory. > > > > You can erase every location of program FLASH ROM, except for > the loop of code doing the erasing. The only thing they > will find is the self-destruct code . > > I found this out the hard way when I had a loop erasing an area > of program FLASH that I was using to record debug data. The loop > counter overflowed and erased the firmware. My robot had an instant > brain aneurism! Froze dead in its tracks, it did! > > A *serious* drawback to this is that, in order for the program to > be able to write to program FLASH, the block of flash being written > to cannot be code protected. 8-( > > > Dan >