View previous topic :: View next topic |
Author |
Message |
Fusillade
Joined: 02 Aug 2007 Posts: 31
|
Access RAM Memory |
Posted: Thu Jan 31, 2008 9:17 am |
|
|
Compiler Version: 4.047
IDE Version: MPLAB IDE V7.60
Device: PIC18F2520
Does the compiler determine how much of the Access RAM Area (0x00 - 0x7F) is reserved as a scratchpad for data manipulation?
If so, how do I know how much has been reserved so I can make sure the memory is saved during my #int_global routine? Or should I continue to compile the program and view the assembly code to determine what memory area is being used?
Thanks. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
Fusillade
Joined: 02 Aug 2007 Posts: 31
|
|
Posted: Thu Jan 31, 2008 2:23 pm |
|
|
So as Ttelmah wrote:
Quote: | There are two distinctly different types of scratch variable used by CCS. The first are the true 'system' scratch variables. These are located at the bottom of memory, and are global/static in nature. The location for these, can be defined from the device editor, under the 'memory' tab, and they will be located at the defined point, and grow upwards, normally occupying just five locations. |
As a result, I should just concern myself with protecting the first 5 "true system" bytes of scratch memory during my interrupt routine as the other scratch variables are likely not affected. _________________ New:
Compiler Version: 5.078
IDE Version: MPLAB X V4.15
Devices: PIC18LF****
Old:
Compiler Version: 4.121
IDE Version: MPLAB IDE V8.63
Devices: PIC18LF**** |
|
|
|