Blinking a LED using MPLAB X PIC16F877A
Blinking a LED using MPLAB X PIC16F877A As all the programming lanugages start with a "Hello World" program ,but for a embeded programming its more fun if we start with an optical output 1.Start the MPLAB X IDE 2.Start new Project From the menu bar or by File ->New Project 3.A new window will appear , select Microchip Embedded from the category and Stand alone project from the Projects proced by clicking Next 4.Select the Device Midrange 8 bit MCU from the family and PIC16F877A from the Device list 5.Next is selecting the Hardware tool ,select ICD 3 and proceed to Next 6 .Now select the compiler ,for PIC16F877A select Hi Tech PIC compiler 7.Now you are on new project page create a new file by clicking on the menu bar or by File -> New File 8.Choose the file type : select C from the categories and C main file from the File types 9.Click next and take the source files from the left sidebar open the file by double clicking Write the C program code ...