PIC12F629 flash led


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Nov 2013
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: PIC12F629 flash led

    Hello,

    Thanks all for your comments.

    i recheck hardware and all seems ok.

    i'm going crazy with this one. defective ic? its uncommon...

    Henrik: can post hex to see if any diference? do you use default settings file?

    thanks again,
    Paul

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: PIC12F629 flash led

    Hi,
    Have you verified that MCLR is at Vcc?
    LED connected with correct polarity and verified to be working?
    Verified that the programmer and its application is working correctly, can you program other chips?

    Yes, I've compiled your code with the PBP default CONFIG, which I quote here for reference:
    Code:
    #CONFIG
      __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF
    #ENDCONFIG
    This is the code I compiled, using PBP 3.0.7.4
    Code:
    Define OSCCAL_1K 1
    DEFINE OSC 4
    
     CMCON = 7
     OPTION_REG.7= 0 
     GPIO = %00000000 
     TRISIO = %00000001
    
    Start:
    
     HIGH GPIO.0
     PAUSE 1000
     LOW GPIO.0
     PAUSE 1000
    
     GOTO Start
     END
    And here's the resulting hex
    Code:
    :020000040000FA
    :100000002828A301A200FF30A207031CA307031C9A
    :1000100023280330A100DF300F200328A101E83E90
    :10002000A000A109FC30031C1828A00703181528FC
    :10003000A0076400A10F152820181E28A01C222844
    :1000400000002228080083130313831264000800B1
    :10005000FF238316900083120730990083168113C3
    :1000600083128501831601308500831205148316DF
    :100070000510FA3083120120051083160510FA309E
    :0A0080008312012036286300432894
    :02400E00FC3F75
    :00000001FF
    Again, it works fine here. 10k pullup on MCLR, 1k5 in series with LED on GPIO.0

  3. #3
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: PIC12F629 flash led

    I guess you actually have to read the hyperscript numbers. Sorry for the inconenience.

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


    Did you find this post helpful? Yes | No

    Default Re: PIC12F629 flash led

    Quote Originally Posted by pmafer View Post
    Hello,

    Thanks all for your comments.

    i recheck hardware and all seems ok.

    i'm going crazy with this one. defective ic? its uncommon...


    Paul
    How OLD is your breadboard ? Those breadboards into which you just push the wires in corrode BIG TIME in just a couple of years especially if kept in a basement or garage. So verify your connections with an ohm meter, if it is not relatively new.
    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. Pic12f629-i/p
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 13th June 2008, 20:50
  2. I can't even make an LED flash!
    By George in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 3rd April 2007, 06:39
  3. Ultrasound with PIC12F629
    By ewandeur in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th February 2007, 16:22
  4. elapsed time between two led flash...
    By dario in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th February 2006, 16:09
  5. can't even flash an LED
    By bruno333 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th April 2005, 13:27

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