Searching \ for '[PIC]: 32 Bit Hex Format' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: '32 Bit Hex Format'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: 32 Bit Hex Format'
2001\01\29@075207 by Jeethu Rao

flavicon
face
Hi guys,

I've started writing the code for my Homemade 16F877 programmer in Euphoria Language.

I've already finished some general purpose Parallel Port routines and some Bin2Hex , Hex2bin routines.

Last evening, I tried to analyze the HEX files outputted by MPLAB. The Specs given in the MPASM Help File Don't seem to be very clear.

Can someone tell me the format of 32 Bit Hex files ?
Or at least give me some links to web pages on that topic ?

Jeethu Rao

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\29@171902 by Tony Nixon

flavicon
picon face
Jeethu Rao wrote:
>
> Hi guys,
>
> I've started writing the code for my Homemade 16F877 programmer in Euphoria Language.
>
> I've already finished some general purpose Parallel Port routines and some Bin2Hex , Hex2bin routines.
>
> Last evening, I tried to analyze the HEX files outputted by MPLAB. The Specs given in the MPASM Help File Don't seem to be very clear.
>
> Can someone tell me the format of 32 Bit Hex files ?
> Or at least give me some links to web pages on that topic ?
>
> Jeethu Rao
>
> --
> http://www.piclist.com hint: The PICList is archived three different
> ways.  See http://www.piclist.com/#archives for details.

It's much the same as INHX8M format except address specifiers are placed
in the file like this one at the start which set the upper 16 bits of
the program counter address. This value stays there until changed which
would happen if the fuses or config bits are included in the listing.
The address specifier is supplied when '04' is the record type as shown
below.

:020000040000FA

Program counter would be 0000 xxxxh

At ID Locs

:020000040020DA

Program counter would be 2000 xxxxh


At fuses

:020000040030CA

Program counter would be 3000 xxxxh


Fuse data on next line

:08000000FFFFFBFDFFFFFFFF06

Address is specified as 0000 so PC address = 3000 0000

--
Best regards

Tony

mICro's
http://www.picnpoke.com
spam_OUTsalesTakeThisOuTspampicnpoke.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\30@045940 by Clive Frederickson

flavicon
face
Hi Jeethu

       Have a search of the archive, There are details of the HEX08 format.
Also Search Intel's site they have a spec on all the Intel Hex formats.
Other useful sources are Microchip datasheets. One is the programming
specifications for the PIC's and the other is the application notes for
building a simple 16C84 programmer and the 16F877 note the self loading via
the RS232 link (cant quiet remember what Microchip call it.)

Best Regards

Clive Frederickson

       ----------
       From:  Jeethu Rao [SMTP:.....jeethuraoKILLspamspam@spam@CALTIGER.COM]
<[SMTP:jeethuraospamKILLspamCALTIGER.COM]>
       Sent:  29 January 2001 03:07
       Subject:  [PIC]: 32 Bit Hex Format

       Hi guys,

       I've started writing the code for my Homemade 16F877 programmer in
Euphoria Language.

       I've already finished some general purpose Parallel Port routines
and some Bin2Hex , Hex2bin routines.

       Last evening, I tried to analyze the HEX files outputted by MPLAB.
The Specs given in the MPASM Help File Don't seem to be very clear.

       Can someone tell me the format of 32 Bit Hex files ?
       Or at least give me some links to web pages on that topic ?

       Jeethu Rao


*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Dyson's Contrarotator(TM) is the first washing machine with 2
drums rotating in opposite directions at once. This means it
gives the cleanest wash results in the fastest time and takes
the largest loads. The Contrarotator(TM) is now on sale at
selected retailers, and will be available nationwide in spring 2001.

For more information,
please visit our website at http://www.dyson.com.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam.....mitvma.mit.edu with SET PICList DIGEST in the body


2001\01\31@061109 by Jeethu Rao

flavicon
face
Hi Guys,

Thanks a lot to  Tony Nixon for his suggestions regarding the 32 bit hex
file format.

Anyway, I checked the memory export output of MPLAB . But I could find only
:020000040000FA at he beginning of the file. I could not find any other
Linear address records. The config bits were also included in the file, but
I could not find :020000040020DA or any similar Linear address records.I
even tried to include a bit of EEPROM data into the ASM file before
assembling the file. The Data was included, but no Linear address records
could be found.

The conclusion I have come to is that only the first line of the MPLAB
output HEX files are in 32 bit HEX format. The rest will be in 8 bit HEX
format.


as the MPASM help file Appendix A.3 says,

"TT - is a two digit record type record type that will always be '00' except
for the end-of-file record, which will be '01'."

Can I straight away parse the file without bothering much about the 0x04
(Linear Address) type records (Since I am targeting my programmer only on
the Mid Range Flash devices) , Is my conclusion true? Please comment and
suggest

Thanking You,

Jeethu Rao

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspam_OUTspamTakeThisOuTmitvma.mit.edu


2001\01\31@171234 by Tony Nixon

flavicon
picon face
Jeethu Rao wrote:
{Quote hidden}

Hi Jeethu,

What you have summized is not quite right.

The reason that there are no more '04' address records is that the upper
16 bits of the address never need to change after being set for the
first time for 12Cxxx and 16Cxxx devices.

The maximum address normally specified is $2007 (fuse).

ie. the upper 16 bits are always 0000h and is the reason this is the
first line.

:020000040000FA

The ID for 18Cxxx start at $20000000, hence the need to change the upper
16 bit address with another '04' line.

:020000040020DA

--
Best regards

Tony

mICro's
http://www.picnpoke.com
salesspamspam_OUTpicnpoke.com

--
http://www.piclist.com hint: To leave the PICList
@spam@piclist-unsubscribe-requestKILLspamspammitvma.mit.edu


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...