Reset problem


Closed Thread
Results 1 to 23 of 23

Thread: Reset problem

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    you are really sure that is a reset and not a undebounced input which executes an unexpected part of the code?
    how is the BROWN-OUT RESET configure?

    good luck
    i know it's only microcontrolling, but i like it!

  2. #2
    Join Date
    Feb 2005
    Location
    Portugal
    Posts
    79


    Did you find this post helpful? Yes | No

    Default

    Well, i think i solve my problem.
    I have a 78L05 well regulated output with a 10nF ceramic capacitor between +5V and GND, also i also have flyback diodes across inductive loads.
    What i did was to increase a little bit my MCLR pin with a diode. (likely the cause was the MCLR pin voltage decrease a little bit), I saw in datasheet and Voltage on MCLR with respect to VSS can go to +13.5V. Also, put a 10nF cap between Vss and GND (near my PIC).

  3. #3
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Thumbs up

    Here is something to add as a solution for those who still have reset problems.

    1: Use 47K trimpot on MCLR pin.
    2: Adjust the trimpot untill the resetting stops. Requires hard reset after each change.
    3: Remove the trimpot, measure the resistance value, and use a resistor at the same value.
    4: Done.

    BOD_OFF did not work for me but a trimpot at MCLR pin solved the problem.

    GoTo 1

    --------------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

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


    Did you find this post helpful? Yes | No

    Default

    I've never designed a circuit that, where MCLR required connecting, nailing it directly to Vdd was a problem (excluding of course ICSP applications). If you have got so much crap coming down your Supply line that trips out your PIC, then it's time you seriously thought about redesigning your Supply circuit. Because if you go and smooth-out MCLR on it's own, the rest of your PIC is still getting a rubbish supply... then that's going to affect Voltage References, Comparators, ADC's, the point at which your I/Os switch etc etc.

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink Quiet supplies ... ahhhhh !!!!

    Hi, Leonel

    One simple solution is to bring the 5 v to the PIC ( only the PIC ...) through a diode ( Low drop Schottky if required ) and havind a BIG capacitor ( say 470 - 1000µF ) connected to the Cathode. This doesn't keep you from having the usual 10µF and .1µF decoupling caps.

    This will filter spikes, and allow powering the PIC if supply voltage falls too low.

    This also permits to shut down all peripheral components BEFORE the Pic goes to bed ... always having known peripheral states at power off.

    Alain

    Hi, Mel

    When you design an Electronic Ignition or a High Voltage device from a battery , you DO NOT have the choice for a "nice and clean" supply !!! ...
    Last edited by Acetronics2; - 29th April 2006 at 10:10.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    I disagree Alain

    The electronics that you design-in between the PIC and the incomming Power Source, be it vehicular or Battery sourced always ensures the PICs supply is clean. If it's not, then you have a disaster waiting to happen - the TGV will derail, the Président de la République Française will resign, the Government will fall, the Guilotine will be taken out of storage and sharpened - and it will all be your fault.

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking Politics ...

    Quote Originally Posted by Melanie
    the Président de la République Française will resign, the Government will fall, .
    Do you REALLY think it would be a disaster ???

    It's evident you don't live here !!! And you do not know anything about Jacques ( Old friend of mine ... )

    Alain

    PS: aboard your car, you take a diesel generator for the electronics to work ??? ...
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Pic reset and following lock up problem
    By zerosvarka in forum General
    Replies: 19
    Last Post: - 17th June 2009, 20:03
  2. LCD Reset Problem
    By Bill Legge in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th February 2009, 08:55
  3. process hung problem + self reset
    By eng.alamin in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 31st October 2008, 16:22
  4. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  5. PIC problem, ways to do reset
    By lab310 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th May 2005, 14:31

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