+ Post New Thread
Results 1 to 8 of 8
  1. #1
    Newbie level 5
    Points: 227, Level: 2

    Join Date
    Jul 2014
    Posts
    8
    Helped
    0 / 0
    Points
    227
    Level
    2

    PIC MCUs C language Compilers and IDE for PIC16F and PIC18F

    I want to write some program in C language for a PIC16F and a PIC18F. I searched in the internet and I got confused with the name of them! I want a free version and I know that my C program is less than 2 KB. Does MPLAB lonely enough? Or I need to install C16? C18? Which one I must install? Can I install both in a single computer?

    I found four kind of MPLAB C18 Compiler here.I don't know which one should I use and what is the difference?

    Is there any other free software that is better for a beginner? and also be good for biggish project?

    And finally what is the difference between MPLAB IDE and MPLAB X IDE and these different CXs (C18 C24 ...)?

    Finally please give me a full view about the advantages and disadvantages of different PIC compilers. And give me a good tutorial source about installation steps and the steps to build a simple flashing LED with PICs for step one to getting started with this kind of MCUs.

    Note that I am familiar with AVRs and I worked with them about 1 year.

    •   AltAdvertisment

        
       

  2. #2
    Banned
    Points: 12,436, Level: 26

    Join Date
    Apr 2013
    Posts
    2,528
    Helped
    538 / 538
    Points
    12,436
    Level
    26

    Re: PIC MCUs C language Compilers and IDE for PIC16F and PIC18F

    MPLAB and MPLAN X are only IDEs and not Compilers. MPLAB doesn't support newer XC8, XC16 and XC32 Compilers but MPLAB X support both older compilers like Hi-Tech PICC, PICC18, Microchip C18 and newer Microchip's XC8, XC16 and XC32/++ Compilers. You can use MPLAB X with XC8 Compilers Lite version. The demo will work in PRO mode for 45 or 60 days and then switch to Lite mode. They are free. There is no size limitation for code but in Lite mode there won't be optimizations. You can also they mikroC PRO PIC Compiler demo version. It has a demo limit of 2 KB and comes with its own IDE. If you use MPLAB X then you can install plugin for CCS C Compiler and use CCS C Compiler from within MPLAB X or else you can use CCS C Compiler as a standalone Compiler.


    2 members found this post helpful.

  3. #3
    Full Member level 2
    Points: 1,727, Level: 9

    Join Date
    Jan 2012
    Location
    Bangalore, India
    Posts
    130
    Helped
    7 / 7
    Points
    1,727
    Level
    9

    Re: PIC MCUs C language Compilers and IDE for PIC16F and PIC18F

    MPLAB X IDE is newer than MPLAB IDE, and it supports all types of compiler.
    In this C18 is the best choice......................



    •   AltAdvertisment

        
       

  4. #4
    Newbie level 5
    Points: 227, Level: 2

    Join Date
    Jul 2014
    Posts
    8
    Helped
    0 / 0
    Points
    227
    Level
    2

    Re: PIC MCUs C language Compilers and IDE for PIC16F and PIC18F

    Quote Originally Posted by Surender Reddy View Post
    In this C18 is the best choice......................
    Why?
    Isn't C8 & C16 & C32 newer than C18?
    Why do you prefer it to these three new compiler?
    And what is the difference between C18 and the others?



  5. #5
    Newbie level 5
    Points: 227, Level: 2

    Join Date
    Jul 2014
    Posts
    8
    Helped
    0 / 0
    Points
    227
    Level
    2

    Re: PIC MCUs C language Compilers and IDE for PIC16F and PIC18F

    Quote Originally Posted by Surender Reddy View Post
    In this C18 is the best choice......................
    Why?
    I think C8 & C16 & C32 is newer than C18, right? If so, why do you prefer C18 to these three new compiler? And what is the difference?



  6. #6
    Full Member level 2
    Points: 1,113, Level: 7

    Join Date
    Dec 2014
    Posts
    147
    Helped
    3 / 3
    Points
    1,113
    Level
    7

    Re: PIC MCUs C language Compilers and IDE for PIC16F and PIC18F

    Few weeks back i was a total beginner in PIC programming and mplab was confusing me a lot. so i tried out MIKROC. and guess what, its really cool. I wrote many programs using mikroc.



    •   AltAdvertisment

        
       

  7. #7
    Member level 3
    Points: 528, Level: 4
    Pulsetronics's Avatar
    Join Date
    Oct 2014
    Location
    Lagos
    Posts
    67
    Helped
    9 / 9
    Points
    528
    Level
    4

    Re: PIC MCUs C language Compilers and IDE for PIC16F and PIC18F




  8. #8
    Super Moderator
    Points: 72,296, Level: 65
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    11,850
    Helped
    3909 / 3909
    Points
    72,296
    Level
    65

    Re: PIC MCUs C language Compilers and IDE for PIC16F and PIC18F

    As nobody answered, MPLAB ceased development over a year ago at version 8.92. MPLABX is it's replacement and is still the current release of IDE. Unlike 8.92 which is for Windows only, MPLABX is cross platform.

    Within MPLABX you can install almost any compiler you want but the best ones for continued support from Microchip are the ones they produce themselves. They are called XC8, XC16 and XC32. All have free versions and 'pro' versions for which you have to pay a fee.

    The best compiler supporting virtually all the PIC12, PIC16 and PIC18 series in one program, with an IDE, simulator and full debugging capability is probably WIZ-C which is not free but is lower cost than most other compilers. It can also simulate and simultaneously debug in a virtual environment where several PICs are interconnected. For example, you could simulate a system with several different PICs, each running their own programs and joined together by I2C or UART links.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



--[[ ]]--