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

Hex File for AT89C51RD2

Hi!
Last time the title was mistakenly written as "and".
My query is:
I have read the code from AT89C51RD2 and dumped it into a file. This code worked well when burnt in other AT89C51RD2 controllers. Later i got its source code.
Now i am generating the hex file. This hex file is different from one i copied from the controller. The generated file is in Intel Hex Format (i.e. starts with 0x3A) whereas the coped hex file starts with 0x02. What is the difference between two hex files?

Parents
  • An Intel Hex file is really just a text file.

    Each line starts with a colon: which happens to be the character 0x3A.

    If you have a file that starts with 0x02, then it is almost certainly NOT an Intel Hex file.

    Actually, it sounds like it is a binary image, the character 0x02 is the opcode for an LJMP instruction.

Reply
  • An Intel Hex file is really just a text file.

    Each line starts with a colon: which happens to be the character 0x3A.

    If you have a file that starts with 0x02, then it is almost certainly NOT an Intel Hex file.

    Actually, it sounds like it is a binary image, the character 0x02 is the opcode for an LJMP instruction.

Children