171/317
6 - STMicroelectronics Programming Tools
The true source files of the project are actually
MAIN.ASM
and
TIMER500.ASM
. All other files
are auxiliary files.
The
PROJECT.WPJ
file is the configuration file for the editor itself; it defines also the tools to
be used.
The
REG72251.ASM
file is a service file that declares all the registers as global identifiers, so
that the linker will be able to know their addresses. The
REGISTER.INC
file is complementary
to the previous one; it is meant to be included in all the source files that make use of one or
more peripheral devices or system registers. It provides the
EXTERN
definitions for all the
registers defined as
PUBLIC
in the previous files, and also a set of
EQU
ate statements that
associate the predefined names of the individual bits in some peripheral or system registers
with constants, so that the mnemonic names of these bits can be used in instructions like
BSET
or
BRES
that expect a bit number. The
MAP72251.ASM
file is a bit similar to
REG72251.ASM
. It defines the location and size of the memory available in the ST72251.
CATERPIL.BAT
is the file that defines the assembly, link, hex file generation and the back
annotation process.
The two files
REG72251.ASM
and
MAP72251.ASM
define the microcontroller that is used for
the project. If the project has to be changed to use another member of the ST7 family, it is
only necessary to change these two files for those of another microcontroller of the ST7
family and the project will work the same way— provided the new microcontroller contains all
the resources required by the project.
6.4.3 Description of the program files
6.4.3.1 The
PROJECT.WPJ
file
This file contains the settings and the tool references for the project, that is the current working
directory and the commands for assembling, linking and executing the program. Most of them
are grouped in the menu option Project/Configure... that shows the following dialog box: