+ Post New Thread
Results 1 to 11 of 11
  1. #1
    Newbie level 1
    Points: 410, Level: 4

    Join Date
    Sep 2010
    Posts
    1
    Helped
    0 / 0
    Points
    410
    Level
    4

    How to program pic 16f877a microcontroller with c programming using mplab

    i want to learn how to program pic 16f877a microcontroller with c programming using mplab.can any one help me

  2. #2
    Newbie level 5
    Points: 971, Level: 7

    Join Date
    Dec 2007
    Posts
    10
    Helped
    1 / 1
    Points
    971
    Level
    7

    Re: How to program pic 16f877a microcontroller with c programming using mplab

    How do I create a new project in MPLAB IDE which uses a HI-TECH C compiler?

    The easiest way to create a new project in MPLAB IDE is to use the Project Wizard
    selectable from the Project menu.

    HI-TECH Software Frequently Asked Questions



    Make sure you select the HI-TECH Universal toolsuite for all modern HI-TECH
    compilers. The compiler location is not used and should be left as it appears in the
    field, even if it is wrong. You select the compiler to use for a project from the Build
    Options dialog once you have created the project.

    See the webinar:

    Hi-Tech C PRO Compiler for the PIC10/12/16 MCU Family

    for detailed information on the toolsuite and creating projects.



    •   Alt16th September 2010, 04:57

      advertising

        
       

  3. #3
    Advanced Member level 2
    Points: 3,537, Level: 13
    incomplete_jerin's Avatar
    Join Date
    Jun 2010
    Location
    INDIA
    Posts
    551
    Helped
    102 / 102
    Points
    3,537
    Level
    13

    Re: How to program pic 16f877a microcontroller with c programming using mplab

    Actually we use MPLAB IDE for ASSEMBLY language coding & not for C coding. For coding in C for PIC,we use HITECH C,Mickro C etc. You can get all the .exe files from google on searching for it for free.I would suggest you to get started coding in assembly language in MPLAB & after you master in it, go for coding in C.
    Regards,
    Jerin.



    •   Alt16th September 2010, 05:42

      advertising

        
       

  4. #4
    Newbie level 6
    Points: 524, Level: 4

    Join Date
    Jun 2010
    Location
    south africa
    Posts
    13
    Helped
    1 / 1
    Points
    524
    Level
    4

    Re: How to program pic 16f877a microcontroller with c programming using mplab

    with mplab I only knw that they have a tool for writing code for the pic18 (called mcc18), not the 16 (free to download from Microchip Technology Inc. is a Leading Provider of Microcontroller and Analog Semiconductors, providing low-risk product development, lower total system cost and faster time to market for thousands of diverse customer applications worldwide.). but if you want to stick to the pic16f download the free version of mikroc. it has all sorts of library and it is very easy to use, even for beginners. good luck



    •   Alt16th September 2010, 11:41

      advertising

        
       

  5. #5
    Full Member level 5
    Points: 4,101, Level: 15
    welove8051's Avatar
    Join Date
    Jul 2009
    Location
    india
    Posts
    296
    Helped
    40 / 40
    Points
    4,101
    Level
    15

    Re: How to program pic 16f877a microcontroller with c programming using mplab

    install mplab and hitech c toolsuite for 12/16f series from hitech website. create and save new wizard and save the following code.
    #include <HTC.H>

    __CONFIG(INTIO & WDTDIS & PWRTDIS & BORDIS & LVPDIS );
    void main()

    {
    TRISA=0;
    TRISB=0;





    while (1)
    {

    PORTA = 0x55;
    PORTB = 0x55;
    _delay(100000);
    _delay(100000);
    _delay(100000);
    _delay(100000);
    //_delay(100000);


    PORTA = 0xaa;
    PORTB = 0xaa;
    _delay(100000);
    _delay(100000);
    _delay(100000);
    _delay(100000);
    //_delay(100000);

    }
    }

    YouTube - led blink using pic through mplab programming

    check the video for programing the pic throug mplab. pickit2 programmer has been used



  6. #6
    Newbie level 4
    Points: 656, Level: 5

    Join Date
    Dec 2009
    Posts
    5
    Helped
    0 / 0
    Points
    656
    Level
    5

    Re: How to program pic 16f877a microcontroller with c programming using mplab

    U can use pic c compiler also. First u will hav to install pic c compiler/ccs c compiler. After that u will hav to install mplab plugin for pic c compiler/ccs c compiler. If these two are installed in ur system then u just open the mplab-> go to project wizard-> and when the area to select the compiler comes just select the pic c compiler/ccs c compiler.

    hope dis will help you...



  7. #7
    Member level 5
    Points: 542, Level: 4

    Join Date
    Aug 2012
    Posts
    86
    Helped
    2 / 2
    Points
    542
    Level
    4

    Re: How to program pic 16f877a microcontroller with c programming using mplab

    hi everyone i want to do program in c language using MPLAB ide v8.30 ....we can do in that or any other else...

    i dont know how to start program in that ?



  8. #8
    Advanced Member level 1
    Points: 2,347, Level: 11

    Join Date
    Jun 2012
    Location
    Chennai
    Posts
    426
    Helped
    59 / 59
    Points
    2,347
    Level
    11

    Re: How to program pic 16f877a microcontroller with c programming using mplab

    MPLAB is just an environment where you can build the things. But you need a compiler to do all other things.
    There are many free compilers available, C18, CCS C, etc. First install the mplab ide. then, install the compiler whichever you need. And then, you have to install a small plugin where it will communicate with mplab and ccs. After installing those, you are free to develop the program.

    Best wishes :)



  9. #9
    Member level 5
    Points: 542, Level: 4

    Join Date
    Aug 2012
    Posts
    86
    Helped
    2 / 2
    Points
    542
    Level
    4

    Re: How to program pic 16f877a microcontroller with c programming using mplab

    after writing the code how it will generate hex file and which tool can i use to download that ?



  10. #10
    Advanced Member level 1
    Points: 2,347, Level: 11

    Join Date
    Jun 2012
    Location
    Chennai
    Posts
    426
    Helped
    59 / 59
    Points
    2,347
    Level
    11

    Re: How to program pic 16f877a microcontroller with c programming using mplab

    if your program compiled successfully. Your compiler will generate a hex file. It will be in the format .hex
    Then, use pickit2 programmer to burn the program to your pic16f877a.



  11. #11
    Member level 5
    Points: 542, Level: 4

    Join Date
    Aug 2012
    Posts
    86
    Helped
    2 / 2
    Points
    542
    Level
    4

    Re: How to program pic 16f877a microcontroller with c programming using mplab

    which compiler can i used to download that hex file?

    - - - Updated - - -

    can u send some web links to download that?



+ Post New Thread
Please login