December 2012
Intermediate to advanced
204 pages
3h 40m
English
In previous examples we have stored data in user files called variables such as TEMPERATURE. The reading of the temperature would have been lost if the power was switched off to the circuit. However if we store the data in the EEPROM Data Memory then the information is retained in the micro when the power is switched off or lost.
The 18F1220 has 256 bytes of EEPROM data memory and the 18(L)F26K22 has 1024 bytes.
Access enabling Reading and Writing to and from the EEPROM is via the four registers:
EECON1
EECON2