Professional Documents
Culture Documents
Quickguide Ccs
Quickguide Ccs
Quickguide Ccs
1 Introduction to CCS
The CCS C Compiler was developed exclusively for the PIC MCU - making it the most optimized compiler for Microchip parts. The compiler has a generous library of built-in functions, preprocessor commands, and ready-torun example programs to quickly jump-start any project. Drivers for real-time clocks, LCDs, A/D converters, and many more are innate features to the CCS C Compiler. The 24-bit compiler - PCD makes for easy migration from 8bit processors up to 24-bit processors with minimal user interaction. PCD has a generous CCS math function library, Flash access functions and the full range of common built-in functions and preprocessor commands that emphasize the need for a C compiler.
There are several versions of compilers that represent the compatible families of Microchip ranging from 12-bit to 24bit. Figure 2 shows the corresponding versions with the supported IC.
TOOLBARS
STARTING ORB
FILE HIERARCHY
2.4 Compile
When done, click on the Toolbar Compile>Build All to compile all of the code. The build function then will open up a window that summarizes all the compilation being done.
Output window then is generated at the bottom of the screen indicating the location of error (if any). Do discard the warning sign and repair all the error stated in order to achieve successful compilation.
Among the output files generated by PIC C compiler, the most important file is the hex files (with *.hex extension). This file is needed by the programmer (such as WinPic) to program the microcontroller. The same hex file also can be used during Proteus VSM Simulation.