Skip to Main Content
PIC Projects and Applications using C
book

PIC Projects and Applications using C

by David W Smith
December 2012
Intermediate to advanced content levelIntermediate to advanced
204 pages
3h 40m
English
Newnes
Content preview from PIC Projects and Applications using C
Chapter 13

EEPROM Data Memory

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:

ent EECON1

ent EECON2

 

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Fundamentals and Programming in C (RMK)

Computer Fundamentals and Programming in C (RMK)

Anita Goel, Ajay Mittal
Jumpstarting C

Jumpstarting C

Wolfram Donat

Publisher Resources

ISBN: 9780080971513