16f877a help


Results 1 to 13 of 13

Thread: 16f877a help

Threaded View

  1. #4
    Join Date
    Jun 2008
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Ok here is the simple code I am trying to run. It compiles but the output doesnt come on

    #include <pic.h>

    __config (PCMDIS & IESODIS & BORDIS & UNPROTECT & MCLRDIS & PWRTEN & WDTDIS & INTIO); //I don’t know what is supposed to go in this, which is the main problem.



    main(){

    PORTA = 0;

    //CMCON0 = 7; //would not compile with these two statements in

    //ANSEL = 0;

    TRISA4 = 0;

    TRISA5 = 0;

    while(1==1){

    RA4 = 1;

    }

    }
    Do I need the config statement or not?
    Last edited by oreo; - 17th June 2008 at 13:56.

Similar Threads

  1. 16F877 vs. 16F877A
    By DavyJones in forum General
    Replies: 12
    Last Post: - 11th April 2009, 19:22
  2. help my bluetooth and PIC 16F877A?
    By slimpeng in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th March 2008, 07:52
  3. Read the newbee threads, 16F877A no go.
    By BobbyA in forum mel PIC BASIC Pro
    Replies: 39
    Last Post: - 31st December 2006, 04:09
  4. Clock connection to DS1802 from 16F877A
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd January 2006, 19:52
  5. 1st 16F877A program in PICBasic
    By Borisw37 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th January 2005, 05:46

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts