Specifications
mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix C: Development Systems
● TOC
● Introduction
● Ch. 1
● Ch. 2
● Ch. 3
● Ch. 4
● Ch. 5
● Ch. 6
● Ch. 7
● Ch. 8
● Ch. 9
● App. A
● App. B
● App. C
Appendix C: Development Systems
How to start working?
A microcontroller is a good-natured "genie in the bottle" and no extra knowledge is required to
use it.
In order to create a device controlled by the microcontroller, it is necessary to provide the
simplest PC, program for compiling and simple device to transfer that code from PC to chip itself.
Even though this process is quite logical, there are often some queries, not because it is
complicated, but for numerous variations. Let's take a look...
WRITING PROGRAM IN ASSEMBLY LANGUAGE
In order to write a program for the microcontroller, a specialized program in the Windows
environment may be used. Any program for text processing can be used for this purpose. The
point is to write all instructions in such an order they should be executed by the microcontroller,
observe the rules of assembly language and write instructions exactly as they are defined. In
other words, you just have to follow the program idea! That's all! When using custom software,
there are numerous tools which are also installed to aid in the development process. One such
tool is the Simulator. This enables the user to test the code prior to burning it to the MCU.
Loop button PORTA,0,0,Increment
button PORTA,1,0,Decrement
http://www.mikroe.com/en/books/picmcubook/appc/ (1 of 7)5/3/2009 11:36:25 AM