Why is my LED not blinking?


Closed Thread
Results 1 to 15 of 15

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Retool

    I have even changed the breadboard. What else can I do?
    Try a different programmer software, and or a different programmer.
    I use ICPROG available on internet free, with a JDM clone programmer I bought off ebay from a seller in Bulgaria, cost 18 bucks and works always.
    http://www.ic-prog.com/index1.htm
    edit:
    you said you have used stamps for years, which programmer did you use on them, is the one you are using now? Are you using a bootloader to load your PIC? And I am just covering the bases here and not trying to offend, you are loading the HEX file and not one of the others, correct? Last thing, verify MCLR pin is at or near 5v+ when operating, do not attach any load to it though. I had once hooked an LED to MCLR so as to observe and verify reset switch operation and PIC would not work.
    Last edited by Archangel; - 31st December 2006 at 01:40. Reason: add

  2. #2


    Did you find this post helpful? Yes | No

    Default It's working!

    So, I finally found out what was wrong. It was not in the circuit, but the software. From what I had understood Microcode Studio would compile the PicBasic pro program to a hex file and pass that to the programmer software. When I looked at the code in the programmer it was just a bunch of 0FFFs. So I then found the compiled hex file and opened that in the programmer and then programed the pic and voila! Blink. Apparently Microcode studio doesn't pass the hex file along as the stamp editor does. Thanks for all your help and happy New Year.

    By the way I used an Athena rs232 to ttl line driver I had laying around to create a debug to the pc using hyperterminal thru my usb port (using a serial to usb converter.) The microcode studio doesn't seem to have a com 4 port on the serial communicator. So all is well.

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


    Did you find this post helpful? Yes | No

    Default Terrific

    Glad you got it working Gary! Funny It seems so obvious to someone experienced with microcode studio that you have to select the file to load, but to a newbie it seems that the file you just compiled should be loaded when you click program. I will remember this post for someone else's sake down the road.
    Last edited by Archangel; - 1st January 2007 at 10:03. Reason: Add

  4. #4
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hello,

    If you just compiled a program in Microcode Studio by pressing the button for Compile and Program or pressed F10 it should have brought up the programmer window. This is what happens when I use the ME Labs USB programmer or the EPIC programmer. The only time it doesn't is when I use the PIC Flash from Mikroelektronica. Then I have to open the programmer program and then select the .hex file to load. That may be because I don't have the path for PicFlash setup properly. But as long as I have used MCS it has always opened the programmer window with the .hex file ready to load.

    BobK

  5. #5
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    I use a JDM programmer and WinPICpr as the software for squirting the HEX to the PIC. Pressing F10 in microcode studio launches the Winpic pro application, but it doesn't load the code automatically. You still have to use the FILE - LOAD option, and then program the PIC

Similar Threads

  1. Simple Blinking LED - WTF!!
    By johnnylynx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st February 2010, 06:19
  2. Blinking an led problem on P16F84
    By aimenbukharie in forum General
    Replies: 1
    Last Post: - 20th March 2009, 05:00
  3. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 20:19
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. simple LED Blinking project
    By koossa in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th December 2004, 01:25

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