SW006010 Microchip Technology, SW006010 Datasheet - Page 32

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
MPLAB
apRNOVM^-page 26
C17 C Compiler User’s Guide
FIGURE 3-2:
3.4.2
Select File > New to open a blank editor window. Type the following into the window
and save it as
simple program that adds two numbers.
#include <p17c756a.h>
void main(void);
unsigned char Add(unsigned char a, unsigned char b);
unsigned char x, y, z;
void main()
{
}
unsigned char Add(unsigned char a, unsigned char b)
{ return a+b; }
x = 2;4
y = 5;
z = Add(x,y);
MPLAB C17
ex1.c
ex1.o
Create Source File
ex1.c
Precompiled Object Files
AN MPLAB PROJECT WITH MPLAB C17
in a directory called, for example,
c0s17.o
MPLINK Linker
ex1.hex
p17c756a.o
p17c756s.lkr
c:\proj0
 2002 Microchip Technology Inc.
. This is a very
Source
File
COMPILER
Object
Files
Linker Script
File
LINKER
Main Output
File

Related parts for SW006010