I want to put a string in the program memory of a pic18f. Inside this string I need specific values at some positions.
E.G.
rom const unsigned char date_const_array[]="Date:";
will place the string Date:
inside program memory.
What I want is to insert to position 3 of the array the value 15 at compile time. If the array was in ram I could do:
date_const_array[3]=15;
inside main function. But since I do not want this array to be altered and I value my ram I want it to be placed inside rom.
How can I do it?
Thanks in advance