Hi. I'm working with the C18 and I very new using this compiler. I'm
trying to read and write the program memory with a code like this:
#include <p18F452>
#include <stdlib>
rom int v[5];
main()
{
int i;
int val;
char buff[16];
for (i=0;i<5;i++) // load values in to the array
v[i] = 2*5;
for (i=0;i<5;i++)
{
val = v[i];
itoa(val, buff);
print_lcd(buff); // With this function show the value in
// LCD module.
}
}
The problem is: Don't work!!!!!!!! The values in the array always
are 0. Some one test somthing like this?
Thank's for your time.
Sergio