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
  • I have heard of memory mapped I/O and I use _at_ for just that. However, I never want the C run-time to write initial values to it! Do you? If the lcdControlReg is located at 0x8000 what does it mean to give it an initial value of 5? Why would it be better to have the C run-time do this for you than simply doing it explicitly?

    - Mark

Reply
  • I have heard of memory mapped I/O and I use _at_ for just that. However, I never want the C run-time to write initial values to it! Do you? If the lcdControlReg is located at 0x8000 what does it mean to give it an initial value of 5? Why would it be better to have the C run-time do this for you than simply doing it explicitly?

    - Mark

Children
No data