At 01:55 PM 2/9/2006 -0500, you wrote: >Okay amusing story done, does anyone know under what conditions a PIC >might have trouble reading the internal EEPROM? Design decisions in >making the board were some I would not have made and the programming >style is not one I would have used but I see no failure mode in the code >that would lead to this. It sounds like some kind of issue with electrical noise or reset circuitry. Make sure BOR is enabled. Consider external supervisory circuitry. Test with LEDs in place of the coils to see if it's electrical noise (in which case a new PCB layout may be your fix). But.. keep in mind that there is a financial reward for failure in this case, and people have been known to secret on their persons devices which deliberately cause electrical noise in order to collect a jackpot. This is common knowledge in the gaming industry, and countermeasures must be taken. Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com ->> Inexpensive test equipment & parts http://search.ebay.com/_W0QQsassZspeff -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist