Artikkelissa <33D7FF5F.A3D1DBA8@flash.net> bryanr@FLASH.NET (Reply-To: PICLIST@MITVMA.MIT.EDU) (INTERNET kirjoitti: This one goes to Nigel as well: > I have a very strong feeling that code protection was turned on > incorrectly by the Nigel software, which of course thought it was > programming a C84 and not an F84. So what I need now is a program > that can fix the code protection settings on my poor dead F84. These > Again, the F84 refuses to program, however, it has been erased by the > Nigel software, so I am assuming it is effectively "blank." The Nigel > software reports a configuration setting of 1F, but I thought the > configuration word was 14 bits, not 8? In C84 code protection is only bit 4 in config word. In F84 it is bits 13 to 4. They ALL must be 1's for the code protection to be off. Since the programmer (the program, actually) sets only bit 4, it 'thinks' the part is unprotected, but PIC knows better. There isn't really any other correction than use software that knows how to deal with F part. Basically it's users fault to make/leave code protection on. And it's not funny. I know. Anyone using TOPIC (from D. Tait), can make these changes to the software source code and compile for 16F84 in topic.c line 46 #define CP 16 --> #define CP 16368 line 111 .. config |RTE; .. --> .. config &WRTE; .. line 275 .. (cfg&PWRTE)? 'P':'-'; --> .. (cfg&PWRTE)? '-':'P'; line 293 config|CP; --> config|CP|PWRTE; Kimmo