Microchip Technology Zena Guide de l'utilisateur Page 47

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 288
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 46
A Basic Tutorial for MPLAB IDE
© 2006 Microchip Technology Inc. DS51519B-page 37
In this bit of code, we used three variables named COUNT, DVAR and DVAR2. These
variables need to be defined in the template file in the UDATA_ACS section for unini-
tialized data using Access RAM. Using the Access bank will make the code simpler, as
there will be no need to keep track of banks (banksel) for each variable.
There is already one variable in this section of the template file, and ours can be added
at the end using the same format. Each variable is 8-bit, so only 1 byte each needs to
be reserved.
FIGURE 2-14: TEMPLATE FILE – ADD VARIABLES
2.11 BUILDING THE PROJECT AGAIN
Select Project>Build All to assemble and link the code. If the code assembled with no
errors, the Output Window will look like Figure 2-15.
FIGURE 2-15: BUILD OUTPUT WINDOW
Add
these
three
lines
Vue de la page 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 287 288

Commentaires sur ces manuels

Pas de commentaire