Pages

Monday 23 March 2015

Programming with PIC Microcontroller: Chapter-2

MPLAB IDE:
MPLAB IDE is a free integrated toolset for the development of embedded application on microchip IC and dsPIC microcontroller.


Install MPLAB by following the instructions sets provided in your software.


Creating a new project:
1) Open MPLAB
2) Create a folder in any drive.
3) Select project->project wizard


4.Click on next


5.Select PIC16F7877A then click on next.



6.Select HI-TECH Universal Tool Suite and click next










 

7.Click on browse and select the folder you saved on the drive and write a filename ex: lcd12.


 8.Click on save




9.Click on next->next->next->finish




10.You will get the following window.


11. Click on file->new->type a program



 12.Click on save->save it in the same folder with .c extension and click on save.


 13.Right click on source file ->add files->select your .c file->click on open.




14.click on programmer->select programmer->9PICkit 2

15.Click on configure ->configuration bits->unclick the configuration bits set in code->click ok select low voltage programming->then click the configuration set in code






16.Click on programmer->connect


17.Click on compile