Is there any simple way to check if the program in a PIC (16C57) is corrupt? Since the program memory can't be read by the program itself it's impossible to check it with a checksum. Is there any other way? I could put RETLW XX at several locations, where XX is a known constant, and then call these locations to see if I get the expected value in return but this doesn't check the entire program. ------------------------------------ Ruben Joensson AB Liros Elektronik Box 9124 200 39 Malmoe Sweden Tel +46 40 14 20 80 Mail: ruben@sbbs.se ------------------------------------