Software PWM lockup on a 16F877A


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Call me a Muppet and stripe me pink!

    I could have sworn they were gosubs! Honestly... i seen gosubs...
    Well spotted!

    I'll re-program in the morning...

  2. #2


    Did you find this post helpful? Yes | No

    Default

    ok... getting annoyed!
    Changed the goto's to gosubs... same fault...
    Disabled BOTH interupts so that all it has to do is flash an LED using pauses... same fault...
    I've disabled the watchdog, power on timer, brownout reset and LVP and it still does it...

    i'm seriously lost now... Help needed

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Just for the hell of it... I tried another PIC same model and it does it on that too...

    Any help is VERY appreciated

  4. #4


    Did you find this post helpful? Yes | No

    Angry

    You are not going to believe this!

    i tried a test program, disabled analog, turns all ports to output, sets all ports to low and then enters the same loop to toggle the LED... SIMPLE!
    It failed and locked up...

    so i asked myself, what is the diference between the 3mm red LED on PORTB.7 and the one on PORTD.0? so i switched them over... same result...

    Just for the hell of it, i switched the resisters over and tried it... and it works!
    I switched the resisters back and it locks up...

    I took the suspect resister out and stuck it on my multimeter... it read less than 1ohm!
    The resisters are supposed to be 68 ohms... this one is a faulty one...

    So, the problem must have been caused by too much current through one of the IO lines...
    I have lost 4 days trying to debug a problem caused by a 5 pence component that i would have never suspected if i was anywhere near sane!

    So now i'm going to re-enable all my code and try it... god darn it!

  5. #5
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Haha good to hear you found a problem!
    I know that feeling too well, you're not alone!

  6. #6


    Did you find this post helpful? Yes | No

    Default

    it's absolutely ridiculous though!
    I would have expected a supply of 5V to kill a 3.3V 3mm red led...
    but no, the PIC just had to be clever...
    Anyways, it's bed time...

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