Maker Pro
Maker Pro

PIC Compilers

at89atbits

Sep 20, 2014
39
Joined
Sep 20, 2014
Messages
39
Hi I am new to Micro controller programming and would like some intel on various compilers available and ways to program the micro controller.

I have tried programming PIC16F877A with the basic codes using Micro C for PIC as compiler and PIC Flash for burning the code.
But they don't have libraries for every PIC controller.
I am looking for more extensive solution which can be used for every micro controller possible.

I have read about MPLAB IDE and XC series of compilers and also PICKIT but I don't have working knowledge of any of those.

I am interested in doing ICSP and the controller I am using for my present project is PIC16LF1786.
However general information about various compilers would be appreciated.
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,886
Joined
Jun 21, 2012
Messages
4,886
...I am looking for more extensive solution which can be used for every micro controller possible.

Well, good luck with that. Please let us know when you find this more extensive solution. I would be particularly interested in micro controllers offered in 2015 and later years.
 

at89atbits

Sep 20, 2014
39
Joined
Sep 20, 2014
Messages
39
Well, good luck with that. Please let us know when you find this more extensive solution. I would be particularly interested in micro controllers offered in 2015 and later years.

Well with every possible I meant every possible PIC micro controller
Cause the compiler I used before - Micro C - misses quite a lot of them
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
Any compiler is likely to support only a subset. For example some very early devices may not longer be supported. Based on licensing you might find that high end devices are not supported. Very new devices may not be supported *yet*.

In terms of supporting *everything* the manufacturer supplied/supported tools are likely to be your best bet.
 

BobK

Jan 5, 2010
7,682
Joined
Jan 5, 2010
Messages
7,682
There are also 4 families of PICs with different instruction sets. There is not one compiler that handles all of them. I use the XC compilers from Microchip, which are free (with optimization disabled.) There are 3 of these to handle the 8, 16 and 32 bit PICs.

Bob
 

at89atbits

Sep 20, 2014
39
Joined
Sep 20, 2014
Messages
39
There are also 4 families of PICs with different instruction sets. There is not one compiler that handles all of them. I use the XC compilers from Microchip, which are free (with optimization disabled.) There are 3 of these to handle the 8, 16 and 32 bit PICs.

Bob

Yes
i have installed MPLAB IDE and also XC8 since as of now i am dealing with PIC16LF1786.
But XC8 is running only in command line mode
its not showing in d IDE when i am building a new project
how do i fix this?
How do i get XC8 in d compiler options when i am building a new project.
i referred to the user guide but i couldn't find the instructables on adding a language tool.
 

at89atbits

Sep 20, 2014
39
Joined
Sep 20, 2014
Messages
39
There are also 4 families of PICs with different instruction sets. There is not one compiler that handles all of them. I use the XC compilers from Microchip, which are free (with optimization disabled.) There are 3 of these to handle the 8, 16 and 32 bit PICs.

Bob

I tried going to tools-> options-> embedded -> build tools and then tried adding XC8
xc8 was mentioned in d list of tool chains but when i tried adding it, it said base directory is currently used by another toolchain. What does this mean? What do i do further?
 

BobK

Jan 5, 2010
7,682
Joined
Jan 5, 2010
Messages
7,682
Are you using MPLAB or MPLAB X? I am not sure the XC compilers work with MPLAB.

Bob
 

at89atbits

Sep 20, 2014
39
Joined
Sep 20, 2014
Messages
39
MPLAB X
in d user's guide there are images of xc8 and xc32 and stuff being present in d compiler options tab
 

BobK

Jan 5, 2010
7,682
Joined
Jan 5, 2010
Messages
7,682
I would try de-installing and re-installing then.

Bob
 
Top