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.

Non-volatile memory in PIC

Status
Not open for further replies.

Nora

Advanced Member level 4
Joined
Mar 31, 2006
Messages
115
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,296
Location
My garage, USA
Activity points
2,292
pic24 non-volatile

Hi there,
I have a couple of questions about memory allocation.

I need to take in some values from a user's terminal into a separate memory chip (such as 24LC256) through a PIC processor. I have been asked to store some data in the separate memory chip, I was told this is because it is non-volatile memory.

I wonder if I could store these equations in the PIC itself. The PIC I'm using is a flash memory PIC 16F877A. Looking at the data sheet, it seems that there are a couple of different areas of memory in the PIC that can be accessed.
I do not understand the data sheet well enough to see which is RAM and which is ROM, but it seems to me that the code itself must be stored in non-volatile memory?

I would appreciate some discussion about this very much!
-NN
 

Flash and EEPROM are non-volatile memories in PIC16F877A. While running a program, this particular PIC can write to either its flash or its EEPROM. Normally, one would use EEPROM for a few values which are changed quite frequently, and flash for large block of constants.

Flash is erased in blocks, and written in smaller blocks (could be as small as one program word). EEPROM bytes are erased/written individually.

Hope this helps!

Cheers,
 

Thanks for the info, it helps a lot.

Does anyone know how to read and write to EEPROM?

Thanks!
-NN
 

You cand find in datasheet how to write the EEPROM or FLASH memory.
If you use Hi-Tech PICC compiler there are some dedicated macros to read/write data from/to EEPROM and FLASH. You can check the manual of the compiler.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top