Installing MPLAB and the CCS PIC C compiler
- Download MPLAB from http://www.microchip.com/ (as of
2/13/01, click "Software" from the main page)
- Unzip and install, accepting all the default options
- From a PCM install disk (purchasable from http://ccsinfo.com), run the install
program and accept all the default options, including allowing it to
modify your autoexec.bat file
- (if either program suggests you restart your computer, do so)
- Run MPLAB
- Go to Project --> Install Language Tool
- Under "Language Suite", select CCS
- Under "Tool Suite", select C Compiler
- Under "Executable", enter C:\PICC\CCSC.EXE
- Click OK
Creating a new Project in MPLAB
- Start MPLAB
- Go to Project --> New Project
- Pick a name for your project (we'll call it name.pjt), click OK
- Under "Language Tool Suite", select CCS
CCS
(click OK when warned that this will cause you to lose your
command-line options)
- Click on the name.hex file in the "Project Files" box
- Click on "Node Properties", then check the "PCM" box, then click OK.
- Click on the "Add Node" button, add a node name.c, then click OK.
- Click OK
- Now create a new file (under File --> New), or open template.c,
and save this file as name.c
(maxdavis(at)mit.edu, 2/13/2001)