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

reading a memory address

Hi,

I am trying to write a constant value into a particular memory address, say for instance I am trying to write decimal value 8235 into a memory location by converting it into an appropriate hex file.

But when I read the data, at the same address where the value was written, back onto my LCD,I get some another value.

Is there a problem with the data format (little endian, big endian)? How would i verify the data format? Are there any tools available for the same?

Parents
  • I am using an Atmel AT90s2313, compiler as CodeVision.

    "how you're writing the value, how you're reading the value"

    I am using a .C file which helps me generate a hex file for the decimal value. I program the chip with my standard code & later i write this newly created hex file into a particular memory address. In the code, I am reading the value from the same memory address into an integer variable & type casting it into int.

    "how you're displaying the value"

    there is no issue with the display, as I have a seperate routine for the same. But yes, I need to give ascii for the display. My routine takes care of the same.

    Regards,
    Jinen

Reply
  • I am using an Atmel AT90s2313, compiler as CodeVision.

    "how you're writing the value, how you're reading the value"

    I am using a .C file which helps me generate a hex file for the decimal value. I program the chip with my standard code & later i write this newly created hex file into a particular memory address. In the code, I am reading the value from the same memory address into an integer variable & type casting it into int.

    "how you're displaying the value"

    there is no issue with the display, as I have a seperate routine for the same. But yes, I need to give ascii for the display. My routine takes care of the same.

    Regards,
    Jinen

Children