> Em 21/2/2011 09:46, IB Peter Feucht escreveu: > > no, there is only one initial eeprom write during flashing the PIC, the= n > > only once again if mode is changed, which usually never happens and if, > then > > months or even years may have gone by. As said, I'm initializing cell #= 0 > to > > $00 for mode 1 and that's it. > > >=20 > EEPROM (and other members of EPROM family) more usual failure mode is > "0" bits reverting back to "1" due to charge leakage. >=20 > You may have one or more "0" bits turning to "1". >=20 If the EEPROM bits always fails from 0 to 1, the OP should use FF for mode = 1=20 instead of 00. That would be a fix for this particular application and use = of=20 the EEPROM. /Ruben =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Ruben J=F6nsson AB Liros Electronic Box 9124, 200 39 Malm=F6, Sweden TEL INT +46 40142078 FAX INT +46 40947388 ruben@pp.sbbs.se =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .