Reset problem


Closed Thread
Results 1 to 23 of 23

Thread: Reset problem

Hybrid View

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

    Default Reset problem

    Hi...
    Sorry to be out so long!
    I'm facing a big problem with reset condition on PIC16F57, this is, when i turn on a motor by a relay sometimes my microcontroller makes a reset. I faced the same problem in PIC16F872 and i solved with a 4,7uF capacitor in MCLR pin, but in PIC16F57 doens't work.
    Does anybody had this kind of problem?
    What i have to do?

  2. #2
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    Try putting a .01uF cap near the PIC between Vdd and Vss. You also may want to try a 10uF cap at the output of your voltage regulator.

    Do you have a diode between the relay coil contacts?

    If none of these suggestions work a schematic is going to be nesscary.
    Last edited by DynamoBen; - 21st March 2006 at 19:39.

  3. #3
    Join Date
    Apr 2005
    Posts
    96


    Did you find this post helpful? Yes | No

    Default

    If you can, check the STATUS register after the reset occurs and see if it tells you why the processor reset. It may be caused by power flucuations when the relay turns on the motor, and not by the mclr pin at all.

  4. #4
    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!

  5. #5
    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).

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

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