Specifications
mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix C: Development Systems
In case other software for program writing in assembly language is used, special software for
compiling the program must be installed and used as follows: set up the compiler, open the
document with .asm extension and compile. The result is the same- a new document with .hex
extension. The only problem you have now is that it is stored in your PC.
PROGRAMMING A MICROCONTROLLER
To enable "hex code" transmission to the microcontroller it is necessary to provide a cable for
serial communication and a special device called programmer with appropriate software. There
are several ways to do it.
A lot of programs and electronic circuits having this purpose can be found on the Internet. Do as
follows: open hex code document, set a few parameters and click the icon for compiling. After a
while, a sequence of zeros and ones is to be programmed into the microcontroller through the
serial connection cable and programmer hardware. There is nothing else to be done except for
placing the programmed chip into the target device. In case it is necessary to make some changes
in the program, the previous procedure may be repeated an unlimited number of times.
Is this a happy ending?
This section briefly describes the use of MPLAB and programmer software developed by
Mikroelektronika. Everything is very simple...
You have already installed MPLAB, havenâ™t you? Open a new project and a new document with
extension.asm.
http://www.mikroe.com/en/books/picmcubook/appc/ (3 of 7)5/3/2009 11:36:25 AM