NEED HELP in pin16f877a

Discussion in 'General Electronics Chat' started by aoronaziz, Apr 2, 2013.

  1. aoronaziz

    Thread Starter New Member

    Apr 2, 2013
    3
    0
    hello. im new in pic. I have task to make blinking led using assembly in pic. the problem is after i program the hex file in pic, led only blinking when i put programmer cable on it(supply from pickit2). it cannot run using my pic circuit supply. But when i program c language hex the led work just fine. how do i fix this problem? Sorry for my bad english.

    this is my code
     
    • led.txt
      File size:
      3.5 KB
      Views:
      52
  2. MrChips

    Moderator

    Oct 2, 2009
    12,442
    3,361
    Connect a 10kΩ resistor from the MCLR' (pin-1) to VDD.
     
  3. aoronaziz

    Thread Starter New Member

    Apr 2, 2013
    3
    0
    thanks MrChips, i try that method but its still not working.
     
  4. MrChips

    Moderator

    Oct 2, 2009
    12,442
    3,361
    Next, check the power supply to your PIC16F877A.
    Connect a 0.1μF capacitor and a 10μF electrolytic capacitor from VDD to VSS.
     
  5. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    Also, you do have a crystal, or some other oscillator- attached, right? How about a schematic?
     
    Last edited: Apr 2, 2013
  6. gerty

    AAC Fanatic!

    Aug 30, 2007
    1,153
    304
    Do you have power to pins 11-12, 31-32
     
  7. RG23

    Active Member

    Dec 6, 2010
    301
    2
    Check the configuration bits set in code
     
    ErnieM likes this.
  8. aoronaziz

    Thread Starter New Member

    Apr 2, 2013
    3
    0
    thanks guys, its working now.. im glad to come to this site.
     
  9. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    And your solution was....? Remember, this is a learning site, be sure to post what helped you, so someone in the future may also benefit from it.
     
Loading...