can we execute the code in ram memory in lpc915...if yes,how?
Do you really mean C251 - or should that be C51?
The 8051 CPU knows nothing about "RAM" - all it knows is its CODE, XDATA, and other address spaces.
An 8051 CPU can only execute from CODE space; if you have RAM in your CODE space, then it will execute from RAM!
But remember that the 8051 architecture has no way to write to CODE space - so you will have to think up some "cunning trick" to get your code into that RAM...
eg, see: www.8052.com/.../182555 (and follow the whole thread).
ok forget the ram memory....suppose i hav a program between the code space 00h-0600h...i need to write a function in between which should start at 0700h..how do i go about it....??
Why do you "need" it to be at that specific address?
Or any specific address?
See the posts in this thread http://www.keil.com/forum/19104/ about "We constanly suffer from people that don't want to describe what problem they have"
www.catb.org/.../smart-questions.html
i hav a program in the code space between 00 to 600h that keeps erasing the flash and reprograms it....i dont want a particular portion of my code to be erased...so i got to put that at a different space,say 700h....how do i go abt it?
In other words, you have a so-called "Bootloader" (or "Boot-loader").
This is a very common arrangement indeed - a bit of searching with those keywords should find you plenty of examples...
no no..i need to know if we can shift the control of the processor from one address location to another within the same source code..
is it ok to use
#pragma asm ORG 0x700h #pragma endasm
???is there anything else i need to specify for the compiler to generate assembler code??
View all questions in Keil forum