Comments on: PIC Hex File Format https://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/ Microcontrollers, training, electronics and coding Wed, 19 Jul 2023 08:31:08 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Dino Cervantes https://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/#comment-2290 Tue, 24 Nov 2015 10:55:16 +0000 http://www.kanda.com/blog/?p=36#comment-2290 Very helpfull explanation.
Tanks

]]>
By: Magda https://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/#comment-1257 Tue, 16 Dec 2014 16:52:46 +0000 http://www.kanda.com/blog/?p=36#comment-1257 What’s Going down i am new to this, I stumbled upon this I have found It absolutely helpful and it has aided me out loads.
I am hoping to contribute & assist different users like its helped me.
Great job.

]]>
By: Kanda Admin https://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/#comment-1149 Thu, 21 Aug 2014 10:58:37 +0000 http://www.kanda.com/blog/?p=36#comment-1149 In reply to Mike.

As long as you add the configuration bits to your MPLAB project, they will be in the hex file. All PIC programmers (I think all, certainly all the ones we sell) will program the configuration bits from the hex file and will moan if they aren’t there.

To add congiguration bytes to your MPLAB project, use __CONFIG or CONFIG directives in MPLAB 8, or #pragma config in MPLAB X – there is a tool to do this in MPLAB X under Windows menu -> PIC Memory Views -> Configuration Bits.

Please see another blog post on MPLAB X for more information MPLAB 8 versus MPLAB X

]]>
By: Mike https://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/#comment-1142 Wed, 20 Aug 2014 21:01:23 +0000 http://www.kanda.com/blog/?p=36#comment-1142 So If I have A compiled Pic Hex code it will have The configuration bits Already set so I don’t nee to set them when burning the Chip?

Mike

]]>
By: Catty https://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/#comment-1052 Sun, 29 Jun 2014 05:46:06 +0000 http://www.kanda.com/blog/?p=36#comment-1052 very helpful submit. Thank you for sharing Save it as my
favorite.

]]>
By: Kanda Admin https://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/#comment-985 Fri, 12 Jul 2013 11:49:32 +0000 http://www.kanda.com/blog/?p=36#comment-985 In reply to fabrica de brindes personalizados.

Hi
Thanks for the feedback. It is ok here in IE 8 +, perhaps you have an old browser version or a strange screen resolution.

]]>
By: fabrica de brindes personalizados https://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/#comment-983 Tue, 09 Jul 2013 00:57:16 +0000 http://www.kanda.com/blog/?p=36#comment-983 Hello there, I believe your site could possibly be having web
browser compatibility problems. Whenever I take a look at your website in Safari, it looks fine but when opening in
Internet Explorer, it has some overlapping issues.

I just wanted to provide you with a quick heads
up! Besides that, excellent site!

]]>
By: Clique aqui https://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/#comment-290 Wed, 30 May 2012 02:13:55 +0000 http://www.kanda.com/blog/?p=36#comment-290 Admiring the time and effort you put into your blog and in depth information you provide. It’s awesome to come across a blog every once in a while that isn’t the same unwanted rehashed material. Great read! I’ve saved your site and I’m including your RSS feeds to my Google account.

]]>
By: kandadmin https://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/#comment-6 Thu, 26 Apr 2012 15:12:27 +0000 http://www.kanda.com/blog/?p=36#comment-6 The configuration bytes for PIC18F in the example are these

:020000040030CA
:1000000000270F0F0083F500FFC0FFE0FF400000C5

From the hex file description, if we omit the hex file formatting we get 16 data bytes like this
00270F0F0083F500FFC0FFE0FF400000

These are the configuration bytes from Config1L to Config7H (14 bytes). The last 2 bytes are dummies. The bottom 8 are configuration, and next 6 are lock bytes. If you look in a PIC datasheet under “Special Features of the CPU” section, you will see all the configuration bits laid out and described.

]]>