Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

A question about EEPROM features

Status
Not open for further replies.

Okada

Banned
Joined
Jun 16, 2016
Messages
1,159
Helped
129
Reputation
252
Reaction score
129
Trophy points
63
Activity points
0
I am using PIC18F13K22 to make a project. See attached picture ?

What is

EEPROM code protection

and

EEPROM Write protection

EEPROM code protection enabled means I can't write to eeprom in run time but data in eeprom can be used. Right ?

EEPROM Write protection means I can't write to eeprom using programmer and also from code. Right ?

How to use these settings ?

I need to write some flags to eeprom in run time but I don't want anybody to erase the eeprom that is I want eeprom data to be preserved even if chip is erased. How to do this ?
 

Attachments

  • eeprom features.png
    eeprom features.png
    39.2 KB · Views: 81
Last edited:

Firstly you are misunderstanding both EEPROM related protection bits.
Code protection means, the EEPROM content can't be read or written by a programmer, only erased in total
Write protection means, it can't be written at run-time (used as read-only memory)
Review the datasheet.

I need to write some flags to eeprom in run time but I don't want anybody to erase the eeprom that is I want eeprom data to be preserved even if chip is erased. How to do this ?
Makes no sense. A programmer can always erase any part of the microcontroller memory. The only way to preserve the EEPROM content in programmer operation is to instruct the programmer respectively.

If this can't be guaranteed, use an external EEPROM.
 
  • Like
Reactions: Okada

    Okada

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top