Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 10th April 2008, 06:52 PM   (permalink)
Default

Quote:
Originally Posted by mike50
The hex file doesn't contain config data.


Firstly, I'll get this bit out of the way...I'm still a noob, but hope to gradually change this status. I'm not here to pick an argument, but the quote above differs from what I had initially thought, along with what I have just pulled up on 'the net'.

For instance, the datasheet for this PIC lists the Config bits in address 2007h and a disassembly (Using IC-Prog) of the .HEX file shows:

Code:
ORG    0x2007
DATA   0x1F
toward the end of the file.

Also, in this link:
http://books.google.co.uk/books?id=d...d2pxw54U&hl=en

the first paragraph mentions Config fuses in the .HEX file.

Please can you expand on your statement?
Mickster is offline  
Old 10th April 2008, 07:55 PM   (permalink)
Default

Quote:
Originally Posted by Mickster


Firstly, I'll get this bit out of the way...I'm still a noob, but hope to gradually change this status. I'm not here to pick an argument, but the quote above differs from what I had initially thought, along with what I have just pulled up on 'the net'.

For instance, the datasheet for this PIC lists the Config bits in address 2007h and a disassembly (Using IC-Prog) of the .HEX file shows:

Code:
ORG    0x2007
DATA   0x1F
toward the end of the file.

Also, in this link:
http://books.google.co.uk/books?id=d...d2pxw54U&hl=en

the first paragraph mentions Config fuses in the .HEX file.

Please can you expand on your statement?
He didn't say ALL HEX files don't contain the config data, they can, and they should - but some people create HEX files without any config data in it. Presumably the particular file under discussion didn't contain config data, and the programmer should warn you when you load it (WinPicProg does).
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 10th April 2008, 08:50 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
He didn't say ALL HEX files don't contain the config data, they can, and they should...
Ah, thanks for clearing that up, I took "The Hex file..." literally.

Quote:
Originally Posted by Nigel Goodwin
... Presumably the particular file under discussion didn't contain config data, and the programmer should warn you when you load it (WinPicProg does).
Would the section:

Code:
         ORG     0x2000
            DATA    0x0F
            DATA    0x0F
            DATA    0x0F
            DATA    0x0F
 
            ORG     0x2007
            DATA    0x1F
 
            ORG     0x2100
            DATA    0xFF
            DATA    0xFF
            DATA    0xFF
            DATA    0xFF....
from the IC-Prog disassembly of the file under discussion indicate whether Config data is present within the HEX file?

The datasheet mentions "Address 2007h is beyond the user program memory space and it belongs to the special test/configuration memory space (2000h - 3FFFh). This space can only be accessed during programming."

Am I mis-interpretting the disassembly to contain something that is not there?

Thanks.
Mickster is offline  
Old 10th April 2008, 08:51 PM   (permalink)
Default

Quote:
Originally Posted by Mickster


Firstly, I'll get this bit out of the way...I'm still a noob, but hope to gradually change this status. I'm not here to pick an argument, but the quote above differs from what I had initially thought, along with what I have just pulled up on 'the net'.

For instance, the datasheet for this PIC lists the Config bits in address 2007h and a disassembly (Using IC-Prog) of the .HEX file shows:

Code:
ORG    0x2007
DATA   0x1F
toward the end of the file.

Also, in this link:
http://books.google.co.uk/books?id=d...d2pxw54U&hl=en

the first paragraph mentions Config fuses in the .HEX file.

Please can you expand on your statement?
The hex file in question from the site identified in the original post
Quote:
Originally Posted by bigal_scorpio
The program I'm trying to use is the RevMaster Firmware Zip at http://www.jeffree.co.uk/pages/tachometer-pcbs.html
contained no CONFIG data.

Mike
mike50 is offline  
Old 10th April 2008, 09:42 PM   (permalink)
Default

Quote:
Originally Posted by Mickster
from the IC-Prog disassembly of the file under discussion indicate whether Config data is present within the HEX file?
No, it's disassembling what's in memory, and as IC-Prog originally used my old 16 bit dis-assembler (even with my name on the resultant files) I presume it still works the same way, using the default config fuses or the value it's been set to.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 10th April 2008, 09:53 PM   (permalink)
Default

Gotcha. Opened IC-Prog & loaded the original .HEX, viewed disassembly, changed the fuses & viewed disassembly again. Lo and behold, different values.

Thanks Nigel & Mike.
Mickster is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Olimex ICD2 Broken! HerbertMunch Micro Controllers 43 5th February 2008 03:39 AM
HD44780 lcd help jay543_uk Micro Controllers 12 8th November 2007 04:26 PM
PIC ASM - Summation two 16 bit numbers (16f84) byrusber Micro Controllers 10 28th October 2007 09:41 PM
RS232 Converter e.chain Micro Controllers 0 6th October 2007 07:19 PM
faulty digital components testing,checking walters General Electronics Chat 5 22nd August 2005 08:10 PM



All times are GMT. The time now is 08:17 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker