MikroElektronika PIC Microcontrollers PIC16 Spezifikationen Seite 225

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 266
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 224
mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples
The purpose of the header and initial directives is briefly described below.
Header:
The header is placed at the beginning of the program and gives basic information in the form of comments (name of the
program, release date etc.). Don't be deluded into thinking that after a few months you will know what that program is
about and why it is saved in your computer.
Initial directives:
list p=16f887
This directive defines processor to execute a program.
#include <p16f887.inc>
It enables the compiler to access the document p16f887.inc (If you have MPLAB installed, it is placed by default on C:
\Program files\Microchip\MPASM Suite). Every SFR register contained in this document, as well as every bit, has its own
name and address. If the program reads for example:
http://www.mikroe.com/en/books/picmcubook/appb/ (20 of 54)5/3/2009 11:36:02 AM
Seitenansicht 224
1 2 ... 220 221 222 223 224 225 226 227 228 229 230 ... 265 266

Kommentare zu diesen Handbüchern

Keine Kommentare