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?
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
"I am using an Atmel AT90s2313, compiler as CodeVision." CodeVision is not a Keil product, and the AT90s2313 is an AVR - not supported bt any Keil product: http://www.keil.com/product/default.asp http://www.keil.com/forum/ You need to go to an AVR/CodeVision forum. eg, http://www.avrfreaks.net/