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.

running code from RAM on PIC

Status
Not open for further replies.

milkdrop

Junior Member level 1
Joined
May 5, 2005
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,527
did anyone tried to run somehow code from RAM on PIC?
i made it with motorola HC08 micrcontrollers - that have Von Neumann's architecture making easy to jump from code space to data space with loaded program, but PIC are Harward architecture based with separate data and code spaces.
my idea is to load a little piece of code from outside to RAM and let it run, then to return to original code in flash.
i don't need very fast running code and big amount of memory space.

one way to do this is to use ROMless PIC, but i don't want to use them.
other possibility is to write the code in free space in flash, with 18F devices it is easy, but the program flash memory (as well as other flash memories) have limited numbers of write cycles, so it is not acceptable for me.

is there any other solution i didn't mention?
 

I am afraid there is no other option, so the only option you have is to use microcontrollers which architecture supports this requirement, that is, you can execute code from external RAM or ROM.
Regards,
IanP
 

I think the only PIC family that offer that is PIC18F8720 and PIC18F8722 family. However you have to connect an external RAM to the bus instead of the internal RAM.
 

IanP, hill: thank you, I was also thinking it's not opssible due to it's archtecture, but I realise I don't know everything, so I asked to somebody more experienced :)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top