PIC Microcontrollers with C18 Compiler
Compiler and IDE
The C18 compiler is a C-language compiler for the Microchip PIC18 family of microcontrollers. The student version of this compiler is available for free at Microchip's website. The difference between the student version and the commercial version is the level of optimization available. For most purposes, the student version should suffice.
Be aware that there are some differences between Microchip's C18 compiler and C compilers for other platforms. For example, an int data type in C18 is 16 bits, instead of the usual 32 bits. Refer to the C18 user guide for more information.
Microchip's IDE, MPLAB, is also available for free at Microchip's website.
Connecting the Programmer
Writing the Code
For more examples, see the C18 User's Guide and the application notes on Microchip's website.