OPCode .hex file structure

Status
Not open for further replies.

Matteo Martinelli

Newbie level 6
Joined
Jan 10, 2014
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
77
Hi, I'm trying to write a .hex file on a dspic 30f5013 using a flashing program created on my own , this is a line of the file:

:10021000050007000c000700e204020000000000d7

I studied the structure of hex files but I still have a question for you. I underlined the first,second,third and fourth opcodes.
Why after the first opcode (050007) there are two zeros, and then another opcode?
I need to write 050007 in the memory of the pic (only the opcodes) or also the zeros?

thanks
 

As far as I know, the bytes in a hex file are a direct copy of the bytes to be programmed to the device. I would guess here it is represented as 'rounded up' to a particular instruction length for purposes of keeping the programming hardware happy.

Brian.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…