??? 12/06/06 11:14 Read: times |
#129061 - So it's a hardware fault Responding to: ???'s previous message |
Priyanka Gupta said:
I have tested my code in simulator, it gives the right output in the simulator So it is a hardware fault! Most likely, as already suggested, your least significant address bit is not working properly. Could be The 8051's A0 output; The address latch's A0 input; The address latch's A0 output; The RAM chip's A0 input; or any of the wiring in between! Possibly even a combination of the above. You could check by having two integer arrays: unsigned int lo_bytes[] = { 0x0055, 0x00AA, 0x00FF }; unsigned int hi_bytes[] = { 0x5500, 0xAA00, 0xFF00 };and see which one works properly... |