User`s guide
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