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.

HOW I EXTEND THE MEMORY OF THE PIC IF CODE IS LARGE

Status
Not open for further replies.

Fragrance

Advanced Member level 4
Joined
Jul 26, 2002
Messages
1,190
Helped
248
Reputation
496
Reaction score
202
Trophy points
1,343
Location
East Of Earth
Activity points
8,933
HI FRIENDS

I need your help regarding this post i am using a pic16f877 my application
required a complex code so memory is problem how i extend the memory of the chip
because i want to use only this chip in my design

regards
Fragrance
 

I am afraid you can not extend the code memory of a PIC 16F877.

You could for example if you have lots of strings in your program put these strings in an external eeprom which can be acessed via I2C or SPI bus. You would have to get the string whenever it is required from external EEPROM. I have no idea if your application allows this.

Another method (which I use often) is to use a PIC 18F452 (which has twice the code capacity) instead of the 16F877 it is pin compatible and if your software is written in C all you have to do is to recompile with a compiler for the PIC 18 series.

hope this helps
 

Fragrance

The 18f PICs are comparable on price, and much more powerful. If you are using PIC basic, you need to change a few settings at the start, and you're away. Got a listing using an 18f somewhere, will dig the setting changes out if you need them.

Regards

Carrotts
 

I undesrtood that 18F series allows external memory like intel MCU, the datasheet tell about 2MB linear code adressing. How is this?
 

One possible way, (untried), would be to use an external i2c eeprom, available up to 64K from microchip, the pic16f877 can program its own code space, so you could use a pageing system, load in code blocks as they are needed, program them, then run them. Might work if speed is not a problem?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top