This should probably be on the actual Microchip forum as it is a very technical question. Google and the 16F manual came up with no answers so I turn to the best!
My question: Why is it that when writing to an EEPROM you must write 0X55 then 0XAA to the EECON2 register?
Does this apply to all EEPROMS (serial and parallel)?
It is just to stop accidental writes to the EEPROM. The chances of that exact sequence of instruction appearing in the rom somewhere is very remote and so, if the chip glitches and executes random code, it is extremely unlikely to corrupt the EEPROM.
This should probably be on the actual Microchip forum as it is a very technical question. Google and the 16F manual came up with no answers so I turn to the best!
My question: Why is it that when writing to an EEPROM you must write 0X55 then 0XAA to the EECON2 register?