Novice 16F83A BLINK LED program help


Results 1 to 15 of 15

Threaded View

  1. #1
    Join Date
    Jul 2007
    Posts
    10

    Smile Novice 16F84A BLINK LED program help

    I wanted to try a very simple LED program for my PIC16F84A. I wired it in the following manner:

    5V to 4.7k Ohm resistor to MCLR pin
    5V to VDD
    VDD to ground via .1uF cap
    20 MHz ceramic resonator across OSC1 pin and OSC2 pin
    Ground to Vss
    Pin RB1 to 470 Ohm resistor to LED to Ground

    I put the following program into Microcode studio:
    loop:
    high portb.1
    pause 50
    low portb.1
    goto loop
    end

    The melab configuration is the following:
    Oscillator=RC
    Watchdog time=Enabled
    Power up timer=Enabled
    Code up protect= Off

    The strangest thing happens though... The LED only goes on when I move my hand close to the circuit. I don't even have to touch the circuit, and the LED remains on(does not blink) until I move my hand away.

    I have no idea what I am doing wrong. Can someone PLEASE help me figure this out?? Thanks
    Last edited by owali; - 24th July 2007 at 05:18.

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 04:59
  3. Simple Blink program doesnt work.
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st March 2009, 20:30
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. PIC16F684 Program question
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th December 2006, 14:30

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