Blinking an led problem on P16F84


Closed Thread
Results 1 to 2 of 2
  1. #1
    aimenbukharie's Avatar
    aimenbukharie Guest

    Default Blinking an led problem on P16F84

    I am working on P16F84. I want to blink an led. I have a problem.

    1. After having all the connection,the voltage at the output port of P16F84 is 0.5V and when the led is connected, the voltage drops to 0V. I am confusing that why the voltage drops even the voltage supplied at the VDD is 5V and MCLR pin is connected to 5V.
    Regards

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Most likely you forgot to initialize the TRIS registers and the ports are in a high impedance mode. Put this into your code and post your code if it still does not work.
    Code:
    TRISA = %00000000 ' make all ports outputs
    TRISB = %00000000 ' make all ports outputs
    I did that myself last week
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 07:14
  2. blinking problem with PIC16f887
    By larzazral in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th January 2010, 03:04
  3. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 05:59
  4. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 21:19
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 03: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