MathGeek said:
What I don't understand is WHY i have to write 55h and then AAh to EECON2 before I start writing EEPROM on Midrage PICs. Why?
It's
VERY simple, EEPROM corruption is an
extremely common occurance, both in internal EEPROM and external EEPROM, and is actually one of the largest causes of TV faults today.
By making the conditions for writing to the EEPROM fairly complicated it helps to ensure greater reliability of the data stored there. These specific conditions are highly unlikely to occur by accident or during a device crash.