I am looking for a good C compiler for the PIC 16 family, working on Windows.
A couple of colleagues use bknudc but some seem to dislike it. Apparently you cannot use the linker efficiently, and it turns out that the best is to set all code in include files.
SDCC seems nice, but looks like it is still in beta, and not easy to setup or to have to deal with.
There are quite some other options, all are the best available according to themselves. I found some forums discussing the topic and no one seem to agree with one another. MikroC, CCS (expensive), HiTech, BoostC.
I would like to have some real information on what's good and what's bad.
If I got it right, the PIC16 architecture is not really C-friendly? Is there a compiler that lets the programmer work in ANSI C anyway? And a way to setup a nice enough debugger?
The HI-TECH C Compiler for PIC10/12/16 MCUs (Lite mode) is a freeware compiler. It supports all. PIC10, PIC12 and PIC16 series devices. The features of HI-TECH C Compiler are listed as followings: • Fully compatible with Microchip's MPLAB IDE.
CCS C Compiler - Free download and software reviews - CNET Download.
PIC32MX. In November 2007, Microchip introduced the PIC32MX family of 32-bit microcontrollers, based on the MIPS32 M4K Core. The device can be programmed using the Microchip MPLAB C Compiler for PIC32 MCUs, a variant of the GCC compiler.
C compiler “translates” the source code into object code. In addition, the compiler will perform error and syntax checking. The object code is then linked with other object modules to form machine code (op-code “HEX-CODE”). After linking, the program can be run and test using debugger.
You're right in your assessment that PIC16 is not really C-friendly. If you want to code in C you are much much better off doing it with PIC18.
Microchip gives out an excellent and free IDE and compiler called MPLAB for the PIC18. Its really easy to work work. Plus the PIC18 family is generally more powerful but has some chips with a not much larger footprint than that of the PIC16 family.
Starting to develop a new product with PIC16 is a not a good idea.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With