Can't get blink circuit to work :(


Results 1 to 22 of 22

Threaded View

  1. #1
    Join Date
    Jul 2007
    Posts
    67

    Default Can't get blink circuit to work :(

    Hi
    I was hoping someone can help me with this.

    I want to start using pics but I can't even get my blink circuit to work.

    I have PIC basic pro
    and I use micro code studio.

    My programmer is from ebay

    I have knowledge in electronics but little knowledge in Micro controllers.

    So I have done my board over and over again and nothing no led blinking

    I have tried this

    @ DEVICE pic16F84, XT_OSC

    @ DEVICE pic16F84, WDT_OFF
    ' Watchdog Timer

    @ DEVICE PIC16F84, PWRT_ON
    ' Power-On Timer

    DEFINE OSC 4


    TrisB = %00000000 ' Sets all bits portb as outputs

    loop:
    High PORTB.0 ' Turn on LED connected to PORTB.0
    Pause 1500 ' Delay for 1.5 seconds

    Low PORTB.0 ' Turn off LED connected to PORTB.0
    Pause 1500 ' Delay for 1.5 seconds

    Goto loop ' Go back to loop and blink LED forever
    End


    and this

    ' Example program to blink an LED connected to PORTB.0 about
    ' once a second

    loop:
    High 0 ' Turn on LED connected to PORTB.0
    Pause 500 ' Delay for .5 seconds

    Low 0 ' Turn off LED connected to PORTB.0
    Pause 500 ' Delay for .5 seconds

    Goto loop ' Go back to loop and blink LED forever
    End


    and nothing

    I have re done my circuit over and over again and nothing

    On my bread board I didn't use any filters on the 78L05
    would that really matter and not make it blink?

    Ps: the pictures of my programmer software and settings they are on are in the attachments
    Attached Images Attached Images   
    Last edited by Techbuilder; - 20th January 2008 at 03:48. Reason: Forgot to add something

Similar Threads

  1. Simple Blink program doesnt work.
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st March 2009, 20:30
  2. Can't get POT work on P12f675 - Newbie
    By berslan in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 26th March 2008, 21:22
  3. Circuit reliability issues
    By hkpatrice in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd November 2007, 14:55
  4. Replies: 3
    Last Post: - 29th October 2006, 09:16
  5. Pin RA4 doesn't work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 12:03

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