Melvin Hendrick

How can I place an array of constants in program memory?

Discussion created by Melvin Hendrick on Mar 20, 2006
Latest reply on Feb 27, 2008 by glenn_calmotion
DSP56F805 (DSP56800 series)
CW 5.6.1.1658 - DSP56800-R7.0
 
I need to move a "large" (2k) array out of data memory and place it in program memory.  In the DSP56800E version there is a __pmem modifier to cause variables to be place in program memory but this is unavailable on the 56800 version.  Could I use  inline asm code and org it P the create the array.  If so, how do I reference a variable created in assembly from the main program?
 
 

Outcomes