SW006010 Microchip Technology, SW006010 Datasheet - Page 23

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
2.6
 2002 Microchip Technology Inc.
STATEMENT DIFFERENCES
Differences Between MPLAB C17 and ANSI C
There are differences between how MPLAB C17 uses some statements and how
these statements would be implemented under ANSI C. These specialized MPLAB
C17 statements are:
• Constants
• Variables
• Storage Classes
• Functions
• Operators
• Initializing Arrays
• Pointers
• Structures
• Bit-fields
2.6.1
Include the file filename into the MPLAB C17 program. Usually at least the processor
header file is included, so that register and pin names may be used in code as
opposed to addresses.
When “
then in the directories specified by the current include search path, which refers to the
environment variable
When <
by the current include search path.
2.6.2
2.6.2.1
Declare a function to be an interrupt function. This pragma must come before the
function definition, but may come after a prototype. The compiler will generate a
separate temporary storage section dedicated to the function.
See Chapter 9 for more details on interrupt handling.
2.6.2.2
interrupt-directive:
2.6.3
2.6.3.1
The
directive. The
following the directive.
2.6.3.2
list-directive:
#include filename
#pragma
switch
#pragma list
#pragma interrupt function-name [section-name]
#pragma list new-line
#pragma nolist new-line
filename
filename
Statement
#include filename
#pragma interrupt fname
DESCRIPTION
SYNTAX
#pragma list / #pragma nolist
DESCRIPTION
SYNTAX
Statements
#pragma nolist
” is used, MPLAB C17 looks for the file in the current directory and
> is used, MPLAB C17 looks for the file in the directories specified
directive turns on list file generation for all code following the
MCC_INCLUDE
new-line
directive turns off list file generation for all code
and command-line option ‘-i’.
apRNOVM^-page 17
Part
Part
Part
Part
1
2
3
4

Related parts for SW006010