Development Tools: IDE, Compiler & Programmer
Turning C code into a running program on a physical chip takes three tools working together: an editor/IDE, a compiler, and a programmer. Here's what each one does.
Programming a PIC involves three distinct tools, and it helps to keep their jobs separate in your head:
- An IDE (integrated development environment) is where you write and organize your code, much like a text editor with extra project-management features built in. Free, official IDEs exist for the PIC family and handle creating a new project, picking your exact chip model, and calling the compiler for you.
- A compiler translates the C code you write into the specific machine instructions that particular PIC's CPU understands. Free C compilers are available for every current PIC family, with paid versions offering more aggressive code optimization — not something a beginner needs to worry about.
- A programmer (sometimes called a "burner" or debugger) is the small hardware box that physically writes the compiled program into the chip's Flash memory over a handful of dedicated pins, and can also let you pause the program and inspect variables while it runs — useful once you move past simple projects.
The output of the compiler is a small file — often with a .hex extension — that lists, in a plain-text format, exactly which bytes go into which memory addresses on the chip. The programmer reads that file and, using a handful of dedicated pins on the chip (usually clock, data, and the reset/MCLR pin), writes those bytes into program memory.
The next lesson walks through setting up an actual project for the first time, from choosing a chip in the IDE to seeing your first compiled build succeed.