convert to intel hex file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jikor
    New Member
    • Mar 2010
    • 4

    convert to intel hex file

    i would like to ask how to convert the txt file to intel hex file??
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    An Intel Hex File is still just a text file, only that data follows a specific formatting pattern.

    Read in data from text file.
    Write data in Intel Hex Format.

    Comment

    • jikor
      New Member
      • Mar 2010
      • 4

      #3
      ya...thx...but then how to convert the data to intel hex file format??

      For example:

      cseg at 8000h
      jmp main

      org 8100h

      main: clr a
      mov r7,#0
      loop: mov a,r7
      cpl a
      mov p1,a
      mov r6,#50h
      djnz r6,$
      djnz r7,loop
      jmp $

      end

      After assembling, we get the intel HEX shown below.

      :03800000028100 FA
      :0F810000E47F00 EFF4F5907E50DEF EDFF680FEA8
      :00000001FF

      thanks for concern~~

      Comment

      • jikor
        New Member
        • Mar 2010
        • 4

        #4
        Thanks ur response, so that I would like to ask how to convert the data or hex.file to intel hex file format??

        For example...
        cseg at 8000h
        jmp main

        org 8100h

        main: clr a
        mov r7,#0
        loop: mov a,r7
        cpl a
        mov p1,a
        mov r6,#50h
        djnz r6,$
        djnz r7,loop
        jmp $

        end

        After assembling, we get the intel HEX shown below.

        :03800000028100 FA
        :0F810000E47F00 EFF4F5907E50DEF EDFF680FEA8
        :00000001FF

        Comment

        Working...