Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Now when i want to program a pic there is two files with the software. A *.hex file and *. asm, which one is better to use. I'm using IC Prog software.
When i open the .asm file the program putputs the hex out of it but when i use the .hex file the output is different. But i should i use the .hex file when programming?
Yes you have to program only Hex file into the PIC.
The type of file also depends upon the software you are using for programming. Some softwares require .bin file. But 98% of the programmers I have seen accepts Intel Hex format.
As previously stated, you program the pic with the hex code, this is derived from the asm file created using a text editor.
The asm file is then assembled using the appropriate assembler, in the case of the pic I would use Mpasm from Microchip. This generates your hex file for you and also if there are any problems it will output an error list too, handy for debugging.
You will need a programmer that supports the the device you wish to program and the application software for the programmer.
Checkout my website for a suitable pic programmer and there is probably a link for software for it too.....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.