Blink Programme for 16F876


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    4Lewis's Avatar
    4Lewis Guest


    Did you find this post helpful? Yes | No

    Default Same Code for blink 16F876A and "not working"

    I used your exact code (which I know works just from looking at it) and I get this error "Code Programming error at 0000" - any suggestions, help?

    -------------------------------
    DEFINE OSC 4

    TRISB = 0 'set all pins on Port B to outputs
    LED VAR PORTB.1 'Sets which PIN the LED is on, Pin 22 +5V

    loop:
    High LED ' Turn on LED connected to PORTB.1 as Set in VAR LED
    Pause 500 ' Delay for .5 seconds
    Low LED ' Turn off LED connected to PORTB.1 as Set in VAR LED
    Pause 500 ' Delay for .5 seconds
    Goto loop ' Go back to loop and blink LED forever

    End
    ------------------------------

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Your device programmer should have a help file listing several possible causes
    for this particular error message. Lots of things can cause this one. Have you
    worked through the list in the help file?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    4Lewis's Avatar
    4Lewis Guest


    Did you find this post helpful? Yes | No

    Default solution is simple

    The problem was simple (once I got the installation documentation)

    My Zif programmer is screwed down to a board, so I couldn't turn it around. NOW, I know what was happening and why.

    I didn't just put my chip in a different direction, I had to turn aroud the Zif programmer and move the cable connector to the other side as well. So my school gave me a new programmer that was't screwed down so I could do that. It was simple, so I feel silly but all ends well.

Similar Threads

  1. Trouble with most basic BLINK on PIC 16F819
    By confusedperson in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 16th April 2009, 21:46
  2. Simple Blink program doesnt work.
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st March 2009, 20:30
  3. Can't get blink circuit to work :(
    By Techbuilder in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 31st January 2008, 13:00
  4. Execution time in programme
    By Adrian in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th November 2007, 22:29
  5. I Just Can't Get it to Blink - 16F628
    By Spindle in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 31st May 2005, 15: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