which compiler to use? (new in PIC)

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

which compiler to use? (new in PIC)

Postby fitri » Mon May 02, 2011 8:34 pm

hi everyone~
im new in PIC, i want to build a prototype of home automation system. i am planning to use PIC16f877a. is that posibble?
And i also dont know which compiler i need to use? one of my friend sugest me to use CCS compiler (it use c language rite?)
i dont realy know how to use it. can somebody give any sugestion?
thx~
regard
fitri.
fitri
Apprentice
 
Posts: 42
Joined: Mon May 02, 2011 8:20 pm

Re: which compiler to use? (new in PIC)

Postby Brian Griffin » Mon May 02, 2011 8:36 pm

fitri WROTE:hi everyone~
im new in PIC, i want to build a prototype of home automation system. i am planning to use PIC16f877a. is that posibble?
And i also dont know which compiler i need to use? one of my friend sugest me to use CCS compiler (it use c language rite?)
i dont realy know how to use it. can somebody give any sugestion?
thx~
regard
fitri.


You can try the Hi-tech compiler for PIC as a good start.

If you are using PIC18F series, use the MPLAB C18 one. :)

Also, aim for the CCS and MikroC if you have some money as the compilers are cheaper than the full version Hi-Tech or the MPLAB C18 ones.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: which compiler to use? (new in PIC)

Postby fitri » Mon May 02, 2011 11:15 pm

thx brian,
em..i already have ccs compiler, should i just use it?
and another question..when i create a program, i build a c source file. is that correct? should it be hex file?
i write program in ccs, and then compile it and import it to pickit. is my procedure correct?

thx for ur suggestion ;)
fitri
Apprentice
 
Posts: 42
Joined: Mon May 02, 2011 8:20 pm

Re: which compiler to use? (new in PIC)

Postby Brian Griffin » Tue May 03, 2011 12:20 am

No worries about the CCS. It's a very good compiler as well.

Take note that there are two versions of CCS - one is attached with the MPLAB IDE (Integrated development environment) and one is a seperate IDE by itself.

Yes, if you create a program, make sure you "Create New Project" in its respective "Projects" drop down menu.

The compiled C will be in the form of hex file.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: which compiler to use? (new in PIC)

Postby shahrul » Tue May 03, 2011 11:32 am

fitri WROTE:thx brian,
em..i already have ccs compiler, should i just use it?
and another question..when i create a program, i build a c source file. is that correct? should it be hex file?
i write program in ccs, and then compile it and import it to pickit. is my procedure correct?

You must create project, set compiler, then write code on C file. The hex file compiled by the software.
This example step2 using MPLab.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: which compiler to use? (new in PIC)

Postby ober » Wed May 04, 2011 9:24 am

Yup, there are plenty of C compiler for PIC out there. Most of them have their own strength and weakness.

Since you already have CCS on hand, just use it. :)
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: which compiler to use? (new in PIC)

Postby Brian Griffin » Wed May 04, 2011 4:27 pm

ober WROTE:Yup, there are plenty of C compiler for PIC out there. Most of them have their own strength and weakness.

Since you already have CCS on hand, just use it. :)


My only grouse of using the CCS is one have to pay for the 1-year maintenance and renewing it isn't cheap. The 1-year maintenance is for compiler updates and new microcontroller support.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: which compiler to use? (new in PIC)

Postby Sab » Tue May 31, 2011 11:25 pm

Hi Experimenters,

Can i used micro C source code and compile in Mplab IDE Hitech C compiler?
Sab
Newbie
 
Posts: 10
Joined: Tue May 17, 2011 2:21 am

Re: which compiler to use? (new in PIC)

Postby Brian Griffin » Wed Jun 01, 2011 9:45 am

Sab WROTE:Hi Experimenters,

Can i used micro C source code and compile in Mplab IDE Hitech C compiler?


You can but you need to modify the codes. The C between these compilers are slightly different.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: which compiler to use? (new in PIC)

Postby Sab » Wed Jun 01, 2011 4:44 pm

Thank you Brian.
Sab
Newbie
 
Posts: 10
Joined: Tue May 17, 2011 2:21 am

Next

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 1 guest