This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

storing data in code memory of 87LPC764

Hi everyone,
j developed a C program that use the philips 87LPC764 8051 derivative.
This micro needs to store at specific addresses in code memory 2 bytes for the configuration options (type of oscillator, speed etc.)...how can j do this? Maybe using the "_at_" keyword?
Any ideas welcomed bye!

Massimo.

Parents
  • That particular chip has a "32 byte customer code space to store things like configuration information" at location 0xFCE0.

    You could use your _at_ to point to that block. The problem now is putting values into the memory. You can do this at the time you program the chip by adding one line to the Hex file or by using special programmer features (which usually don't exist).

    The best bet is probably to have a number of configuration definitions (Hex file lines). Simply append the desired configuration line to your hex file, program, and away you go.

Reply
  • That particular chip has a "32 byte customer code space to store things like configuration information" at location 0xFCE0.

    You could use your _at_ to point to that block. The problem now is putting values into the memory. You can do this at the time you program the chip by adding one line to the Hex file or by using special programmer features (which usually don't exist).

    The best bet is probably to have a number of configuration definitions (Hex file lines). Simply append the desired configuration line to your hex file, program, and away you go.

Children
No data