Unsaon pagconvert ug (notepad) .txt file to .hex file para ma-program nimo sa PIC.
naa software ana? pwede nimo ishare?
Thanks
Unsaon pagconvert ug (notepad) .txt file to .hex file para ma-program nimo sa PIC.
naa software ana? pwede nimo ishare?
Thanks
i assemble or i compile pa na nimo then i build sa mplab para maka create og hex file. adto lang sa www.microchip.com para maka download ka og mplab. naa toy other way pero naka limot na ko hehehe.Originally Posted by viking
Download sa ka og Mplab Ide para mao imo editor og assembler. then himo dayon ka new project. then imo dayon 2 e lod imo txt sa editor. nig assemble nimo kay naa mana cya hex output. ang hex mao na imo e lod sad sa imo hex programmer with your hardware programmer para sa PIC. naa ka hardware programmer. ako naa ko . puide ka nako matabangan. email lang archjet3@hotmail.com or pm lang nako
i used a cross-assembler before that could compile assembly code to specific family of processors/controllers.
first you write your code as text, then save it as a text file. you then compile your code using the assembler. this will generate a binary or hex equivalent in machine language (use the compiler's options to generate the appropriate output). if you want to do it "your" way, you need to have the complete instruction set (with op codes) of the processor and write the file yourself (using a hex editor) using the op codes and their data. you need to have a very good background on the processor's memory addressing schemes to do this, as well as patience to write machine language...
dili na practical mu gamit og machine code kay lisod himuon, debug, og pag update if ever ganahan ka. mas ok if strong ka og foundation sa c or assembly pero i prefer assembly if pic18f84a ang imong gamiton kay mas gamay og kuha sa program memory pero taas lang ang code.Originally Posted by blade4638
that's why i said "if you want to do it "your" way". using a high-level language compiler (such as C) to build assembly code doesn't produce the most efficient code, its only more convenient for the programmer. i've made a program size comparison before when i was in college using 8088 machine code i wrote in hex and that produced by a C compiler. the size difference was significant, enough for us to decide to use the one i wrote because it fit in our very limited 8kB eprom. what took me about 1.5 hours to write/compile in C took me more than 1 day to write in machine code (wala pa na labot pag-plano sa locations in memory para mahibal-an mga offsets during addressing).Originally Posted by erwin_rommel
Kung intresasdo gyud ka makahibalo sa process pag edit until sa pagload sa hex ngad2 sa imo PIC nga IC I can help you and show you how 2 do it. I have the complete tools here to teach you all the way.. Just txt me or Pm or email me. whether on assembly language or in c laguage.. (0915947677. Naa ko ga work sa Mepz 1. we can arrange time kay busy man sad ko.k.
Similar Threads |
|