Rabu, 15 Agustus 2018

Blinking is woefully under a LED using MPLAB X , PIC16F877A

Blinking is woefully under a LED using MPLAB X , PIC16F877A - Another issue when using dual-SIM phones is where your contacts are stored. We found that by default the contacts from both SIM cards are stored in the phonebook. If you'd rather see the contacts from only one SIM, tap the three dots icon (within the Contacts app) and choose 'Contacts to display'. You can then select All contacts, Gmail contacts, phone contacts or one of your two SIMs. times which is frustrating, well we have collected a lot of data from the field directly and from many other blogs so very complete his discussion here about Blinking is woefully under a LED using MPLAB X , PIC16F877A, on this blog we also have to provide the latest automotive information from all the brands associated with the automobile. ok please continue reading:

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 their
 for blinking a LED the code is here

################################################################################

    /*
 * File:   main.c
 * Author: Ebin Ephrem
 *
 * Created on 7 September, 2012, 10:20 AM
 */


#include <htc.h>

#if defined(WDTE_OFF)
__CONFIG(WDTE_OFF & LVP_OFF);
#elif defined (WDTDIS)
__CONFIG(WDTDIS & LVPDIS);
#endif

void delay()
{
    int counter = 0;
    for (counter = 0; counter<10000; counter++)
{
        ;
    }
}

int main(void) {
    TRISB = 0;
   
    while (1)
   {
        PORTB = 0x0F;
         delay();
   
        PORTB = 0x00;
         delay();
    }
    return 0;
}

##############################################################################

10. Build the code by clicking the build icon
if successfully built then go for embedding to your IC


List of Top Authorized Mobile Application Development Companies
https://nandncomputers.blogspot.com/2016/04/list-of-top-authorized-mobile.html
Volcano Box 3.0 Aka Inferno MTK V 0.1F2 Installer Download
https://nandncomputers.blogspot.com/2016/06/volcano-box-30-aka-inferno-mtk-v-01f2.html
New Apple Release Date and Video Showcases Cheap iPhone 7 Clone Based on ‘Genuine Casing’
https://nandncomputers.blogspot.com/2016/07/new-apple-release-date-and-video.html
10 Reasons Why You Should Start a Spiritual Journal Today
https://nandncomputers.blogspot.com/2016/09/10-reasons-why-you-should-start.html
Lawyers who lunch - role of experts in litigation and the EPO in the 21st Century
https://nandncomputers.blogspot.com/2016/09/aippi-congress-report-4-lawyers-who.html

Tidak ada komentar:

Posting Komentar