PIC12F629 flash led


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    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

  2. #2
    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.

Similar Threads

  1. Pic12f629-i/p
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 13th June 2008, 21: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, 07:39
  3. Ultrasound with PIC12F629
    By ewandeur in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th February 2007, 17:22
  4. elapsed time between two led flash...
    By dario in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th February 2006, 17:09
  5. can't even flash an LED
    By bruno333 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th April 2005, 14: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