> I am trying to decode a hex file in Java, I read each line, and am > trying to decode the address. The line I am particularly interested in > is the configure bits, in a 16F627a hex file the address is 0x400e, > instead of 0x2007 (it is one bit shifted to the left). also the config > bits seem to be byte swapped (but the address and count not... A .hex file by itself is byte-oriented. The 12 an 14 bit PICs however are word-oriented, and low-byte first. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu