| |||||||||||||||||||||||
Command-line C-compiler for 12-bit Microchip PIC microcontrollers from CCS (Custom Computer Services). We recommend the book, PICmicro® MCU C - An Introduction to Programming the Microchip PIC in CCS C, which provides a good introduction to using this compiler and complements the documentation that comes with the product. PIC C-Compiler OverviewThis PIC C compiler includes built-in functions to access the PICmicro® hardware such as READ_ADC to read a value from the A/D converter. Discrete I/O is handled by describing the port characteristics in a PRAGMA. Functions such as INPUT and OUTPUT_HIGH will properly maintain the tri-state registers. Variables including structures may be directly mapped to memory such as I/O ports to best represent the hardware structure in C. The microcontroller clock speed may be specified in a PRAGMA to permit built-in functions to delay for a given number of microseconds or milliseconds. Serial I/O functions allow standard functions such as GETC and PRINTF to be used for RS-232 like I/O. The hardware serial transceiver is used for applicable parts when possible. For all other cases a software serial transceiver is generated by the compiler. The standard C operators and the special built-in functions are optimized to produce very efficient code for the bit and I/O functions.
Functions may be implemented inline or separate, allowing to optimize for either ROM concerns or speed concerns. Function parameters are passed in reusable registers. Inline functions with reference parameters are implemented efficiently with no memory overhead. During the linking process, the program structure, including the call tree, is analyzed. Functions that call one another frequently are grouped together in the same page segment. Calls across pages are handled automatically by the tool transparent to the user. Functions may be implemented inline or separate. RAM is allocated efficiently by using the call tree to determine how locations can be re-used. Constant strings and tables are saved in the device ROM. The output hex and debug files are selectable and compatible with popular emulators, integrated development environments and debuggers, including Phyton's Project-MC: PIC emulator, IDE and debugger and Microchip MPLAB® IDE for source level debugging. PIC C-Compiler Features
Operating System SupportThe PCB PIC C compiler requires Windows 95, 98, ME, NT4, 2000, XP or Vista. PIC Microcontroller Devices SupportedMTA81010, PIC10F200, PIC10F202, PIC10F204, PIC10F206, PIC10F220, PIC10F222, PIC12F508, PIC12C508, PIC12C508A, PIC12C509, PIC12F509, PIC12C509A, PIC12CR509A, RFPIC12C509AF, RFPIC12C509AG, PIC12F510, PIC12CE518, PIC12CE519, PIC12F519 *, PIC16C52, PIC16C54, PIC16F54, PIC16CR54A, PIC16C54A, PIC16C54B, PIC16CR54B, PIC16C54C, PIC16CR54C, PIC16C55, PIC16C55A, PIC16C56, PIC16CR56A, PIC16C56A, PIC16F57, PIC16C57, PIC16C57A, PIC16CR57A, PIC16CR57B, PIC16C57B, PIC16CR57C, PIC16C57C, PIC16C58, PIC16CR58A, PIC16C58A, PIC16CR58B, PIC16C58B, PIC16F59, PIC16F505, PIC16C505, PIC16F506, PIC16HV540. * The compiler has not been tested with this device, but it should be compatible.
|
|
|
|
Standard C
- IF, ELSE, WHILE, DO, SWITCH, CASE, FOR, RETURN, GOTO, BREAK, CONTINUE
- ! ~ ++ -- + - , & |
- * / % << >> ^ && || ?:
- < <= > >= == !=
- = += -= *= /= %= >>= <<= &= ^= |=
- TYPEDEF, STATIC, AUTO, CONST, ENUM, STRUCT, UNION
- Arrays up to 5 subscripts
- Structures and Unions may be nested.
- Custom bit fields (1-8 bits) within structures.
- ENUMurated types
- CONSTant variables, arrays and strings.
- Full function parameter support (any number).
- Some support for C++ reference parameters
http://rapidshare.com/files/244928233/CCS.txt
http://rapidshare.com/files/244543682/Manual_Compilador_CCS.pdf