SW500007 Microchip Technology, SW500007 Datasheet - Page 48

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500007

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015P
778-1002
778-1002
Files
the TMRxL register often must be read before trying to read the TMRxH register to obtain a valid
16-bit result.
order in which HI-TECH PICC-18 STD reads the bytes of a multi-byte object varies depending on
the context of the variable in an expression, i.e. it may read the most significant byte first, or the
least. Thus, it highly recommended that the existing SFR char definitions in the chip header files be
used. Each SFR should be accessed directly and in the required order by the programmer’s code.
This will ensure a much higher degree of portability.
3.3 Files
3.3.1 Source Files
The extension used with source files is important as it is used by the compiler drivers to determine
their content. Source files containing C code should have the extension .c, assembler files should
have extensions of .as, relocatable object files require the .obj extension, and library files should
be named with a .lib extension.
3.3.2 Symbol Files
The PICC18 -G option tells the compiler to produce several symbol files which can be used by
debuggers and simulators to perform symbolic and source-level debugging. Using the --IDE option
may also enable symbol file generation as well.
information. This file is produced by the linker after the linking process has ben completed. If
no symbol filename is specified, a default filename of file.sym will be used, where file is the
basename of the first source file specified on the command line. For example, to produce a symbol
file called test.sym which includes C source-level information:
This option will also generate other symbol files for each module compiled. These files are produced
by the code generator and do not contain absolute address. These files have the extension .sdb.
The base name will be the same as the base name of the module being compiled. Thus the above
command line would also generate symbols files with the names test.sdb and init.sdb.
34
Although it is possible to define an absolute non-char C variable to map over such registers, the
The following code copies the two byte registers into C unsigned variable i for subsequent use.
The -G option produces an absolute symbol files which contain both assembler- and C-level
i = TMR0L;
i += TMR0H < < 8;
PICC18 --CHIP=18F242 -Gtest.sym test.c init.c
C Language Features

Related parts for SW500007