Help with Pic Delay Pulse code please


Closed Thread
Results 1 to 37 of 37

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I can't answer questions on your programmer as I don't have one.

    Your CONFIG settings should match those preset into the program, but whether your programmer is actually programming them is another qustion.

    If MCLR needs a pull-up, then the CONFIGS sure don't match (or yor PIC is broke)... it could be there's another tick-box in your software for your programmer that needs activating. My software for example has the ability to program the PIC and leave the CONFIGS untouched unless I've set it on another screen. This also means that GPIO4 could have OSC coming out of it instead of it being used for I/O.

    Worst case scenario is I can send you my PIC, but it means you can't make changes if your programmer is misbehaving.

  2. #2
    Join Date
    Oct 2007
    Posts
    35


    Did you find this post helpful? Yes | No

    Default

    Hi Melanie,

    Some very good news, I managed to get it sorted,
    It works superb,

    The problem I had was two fold,
    The first one was the configs fuse settings, It now works without the 4k7 pullup resister on the MCLR pin. (just as you said)

    It would then work in the breadboard fine but not in my circuit,

    To cut a long story short,
    When I lifted the output pin and dropped an led on it, it worked fine,

    So.... I found that,

    The pic's output drives an opto and led in series, with a 470 ohm to the 5v rail.
    The pic also feeds an input to another pic, (which drives my lcd)
    Somehow there wasnt enough current to drive the circuit even tho there should have been,
    so I fitted another opto isolator as a buffer and this sorted it.

    What a run around,

    Many many thanks for all your help and patience, your a star...

    Cheers
    Dave...

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


    Did you find this post helpful? Yes | No

    Default

    2 rules in this forum:
    #1. Never doubt Melanie.
    #2. Go back to Rule #1
    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
    Oct 2007
    Posts
    35


    Did you find this post helpful? Yes | No

    Default

    I never doubted her in the first place,
    I just couldn't see the wood for the trees....

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by g7jiq View Post
    I never doubted her in the first place,
    I just couldn't see the wood for the trees....
    Out of interest Dave, did you try inverting the MCLRE config assignment ?

    The only reason I suggested it may be a problem was because I had a similar problem once. Now that you mention whcih programmer you used I recall that was the same programmer I had when I had the problem. (Did you know you can upgrade the firmware of that thing to the latest version to make it cover more pics with more memory etc ? it's worth looking into.)

    As for the led and the opto in series, you had a 470ohm resistor across 0.4V, which means the current limiting was in the order of I=V/R = 0.4/470 = 0.00085 A (850uA microamps)

    That's not normally enough to drive anything requiring a strong switching signal, though most TTL circuits should cope.

Similar Threads

  1. 16F628A - Stops if release power switch.
    By dene12 in forum General
    Replies: 16
    Last Post: - 14th February 2009, 07:57
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  3. Help writing pic program with i/p o/p hold delay
    By g7jiq in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th May 2008, 21:58
  4. Pic driven digital audio delay
    By skimask in forum Off Topic
    Replies: 12
    Last Post: - 19th April 2007, 20:42
  5. Memory Space of the PIC16F84...
    By Tear in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 1st July 2005, 19:55

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