??? 11/01/07 19:24 Read: times Msg Score: -1 -1 Answer is Wrong |
#146480 - . Responding to: ???'s previous message |
Shehryar Shaukat said:
the problem that i am facing is that the code is not executing from external ram.
... i am placing the HEX file in the ram that has been produced by the KEIL's uVision 2 compiler. should i place the hex file as it is or do i only need to extract the data bytes from each record of the HEX FILE. Possibly none of the above. What you need to do is determine the addresses that your RAM occupies, and the addresses that your ROM occupies. Also, make sure that the read line on your RAM (usually OE') is tied to (or eventually tied to) PSEN' on an 8051. the 8051 makes PSEN' low when it has an address ready, and when it wants to read external data from that address. This external data is supposed to be a series of bytes that the 8051 understands as instructions. Have you actually tried converting the HEX file to a set of 8051 instructions? here is a link to a free 8051 assembler. http://plit.de/asem-51/ |