16F877A don't start :(


Results 1 to 10 of 10

Threaded View

  1. #1
    Join Date
    Nov 2008
    Location
    Epernon, France
    Posts
    15

    Unhappy 16F877A don't start :(

    Hello,

    I want to blink a led on a 16F877A but nothing run :/
    This is my code:

    Code:
    'Initialisation des fusibles:
    @ DEVICE pic16f877A, HS_OSC, WDT_OFF, LVP_OFF, PROTECT_OFF
    define OSC 20
    
    output portc.2
    Main:
              high portc.2
              pause 1000
              low portc.2                 
              pause 1000
         goto main
    end
    Nothing really fantastic :/

    I've tested with OSC 4 & OSC 8. HS,RC,XT...
    On the PIC i can read "16F877A-I/P" not "16F877A-I/P20"



    Can you show me a working code to blink a LED on this PIC ?


    I'v a 10K pullpup resistor for MCLR connected to +5v, 470ohms for the red 5mm LED, a XTAL 20mhz on PIN 13 & 14, fallowed by 2 capa (22pf) -> GROUND.

    I'm speaking bad but i understand good

    @+
    Niko
    Last edited by nquere; - 8th November 2008 at 22:28.

Similar Threads

  1. First timer...building a remote controlled vehicle
    By .n0rig. in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 9th February 2009, 03:44
  2. Pic16f84 and RC5 kode
    By terminator in forum Bluetooth
    Replies: 5
    Last Post: - 18th June 2007, 21:40
  3. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  4. Clock connection to DS1802 from 16F877A
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd January 2006, 18:52
  5. 16F877A stack problems
    By rocketman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st October 2004, 16:54

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