Welcome into PIC world


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    11

    Default Welcome into PIC world

    Hello This is my first time in PIC's world.

    I am using 16f84a with Melabs programmer.
    I am trying to flash a led at PortB.0 and here is the code and
    circuit diagram is at http://www.trendztechnologies.net/good.jpg

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

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

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

    At all the ports i have 0.74 reading.
    LED is constant but it is not blinking.

    Could you please suggest me what's wrong with this.

    Syed

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Its a little hard for me to follow your "diagram", but it doesn't look like your resonator is grounded to me..... The center pin should go to ground, no?

    Also try trisb command.

    Check out:
    http://www.picbasic.co.uk/forum/showthread.php?t=7906

    Walter

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scalerobotics View Post
    Its a little hard for me to follow your "diagram", but it doesn't look like your resonator is grounded to me..... The center pin should go to ground, no?

    Also try trisb command.

    Check out:
    http://www.picbasic.co.uk/forum/showthread.php?t=7906

    Walter
    Looks like the PIC is not hooked up to ground at all, notice the center pin of the resonator goes to the PICs ground leg but I see no ground wire there.
    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.

  4. #4
    Join Date
    Apr 2009
    Posts
    11


    Did you find this post helpful? Yes | No

    Default Thanks for your reply

    Hi one of the document says the VSS should be connected to the middle pin of resonator, thats why it was connected to Vss and the pullup resistor i have used for MCLR is 4.7K. the other end of pullup resistor the voltage was around 2+_ volts.

    As you said today let me try by connecting the resonator middle pin to Ground , i will post you the output later.

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


    Did you find this post helpful? Yes | No

    Default

    Hello Syed,
    I am looking at the picture you posted, you have a wire going from the center of the resonator to pin 5 of the PIC but no wire from Pin 5 to ground. It must be grounded to the 5v supply, otherwise the PIC receives no power.
    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.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Hello Syed,
    I am looking at the picture you posted, you have a wire going from the center of the resonator to pin 5 of the PIC but no wire from Pin 5 to ground. It must be grounded to the 5v supply, otherwise the PIC receives no power.
    See Attachment:
    <img src=>http://www.picbasic.co.uk/forum/atta...1&d=1240594618
    Attached Images Attached Images  
    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. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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