CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Using an EEPROM as the Program Memory ??

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
johnkkk
Guest







Using an EEPROM as the Program Memory ??
PostPosted: Mon Apr 03, 2006 7:52 am     Reply with quote

Hello ,

I would like to use an EEPROM 24LC256 as a program memory, for these reasons,

- Large program space 256 KBits
- Large area for a ROM
- Easily updatable firmware.

I use a programming language similar to BASIC, to make the application program. The program features are quite satisfactory( for me).

What would be life time of the EEPROM, this is important because the EEPROM is read and written continously, right from the time the hardware is switched ON.

The MCU iam using is 16F877, and PCM compiler.

bye
jj
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Apr 03, 2006 8:13 am     Reply with quote

No, you can not if you are trying to use it for "Program Memory". Move to a PIC18 if you need more ROM.

Now if you mean "Data Memory" then this would be possible but not if you need to write that often. You would be better off using a FRAM which looks like the eeprom but has viritually unlimited writes and is very fast for writing.
johnkkk2
Guest







PostPosted: Mon Apr 03, 2006 8:23 am     Reply with quote

Hello,

Quote:

No, you can not if you are trying to use it for "Program Memory". Move to a PIC18 if you need more ROM.


Is this because the lifecycle for the memory is reduced ?? as for the speed it is slow but is satisfactory for my application..

-jjj
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Apr 03, 2006 8:35 am     Reply with quote

You can't run from external memory on a PIC16F877. Unless, you are actually running some sort of interpreter (scripting) language. Maybe this is what you mean by "language similar to BASIC". The actual code that is running is running from flash (inside the micro) but reads commands from the eeprom and executes them. Is this what you are doing? If so, why do you need the CCS compiler? Maybe you have the source code for an interpreter?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 03, 2006 12:13 pm     Reply with quote

Mark is talking about the Basic Stamp. If you are interested, some
of the internal workings of it are described here:
http://www.mcmanis.com/chuck/Robotics/stamp-decode.html
http://members.aol.com/stamp2book/
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group