PIC problem, ways to do reset


Closed Thread
Results 1 to 2 of 2
  1. #1
    lab310's Avatar
    lab310 Guest

    Default PIC problem, ways to do reset

    I got stuck with this problem: I have simple application of PIC doing only PWM (use hardware PWM) acording to measured input voltage. Problem is that when some big (near) circuti breaker swithes on or off, PIC got stuck and PWM goes to 100% duty cycle. Then I need to switch power on/off (reset) to get it back to work.
    I used power-on reset, brown-out reset and wdt with prescaler 128 (20MHz). MCLR is connected directly to +5V, and whole PCB is in metal box (only has two small openings).
    What should I try to prevent all this to happen?
    Last edited by lab310; - 26th May 2005 at 11:04.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Am pretty sure it's an other example where unused pin are left floating...

    Microchip says.. assign unused pin as Output will be sufficient... that's s h i t. Unused input must bie tie somewhere VCC or Ground. Via resistor will reduce the current consumption.

    I had that problem often in many noisy environement. What i did to solve the problem, tie unused pins to ground and assign them to inputs. PCB should have some kind of ground plane around and under to screen the MCU from external noise/spark.. call it as you want.

    I also see many time PIC destroyed by the environement noise. Yup. So everybody must be tie those unused pin to somewhere....

    Also be sure your voltage regulator output/input is very well spark protectected.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Pic reset and following lock up problem
    By zerosvarka in forum General
    Replies: 19
    Last Post: - 17th June 2009, 21:03
  2. process hung problem + self reset
    By eng.alamin in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 31st October 2008, 17:22
  3. Must reset PIC to get correct operation?
    By Christopher4187 in forum General
    Replies: 5
    Last Post: - 2nd June 2006, 02:59
  4. Replies: 5
    Last Post: - 20th March 2006, 02:34
  5. PC - PIC problem...
    By menhwa in forum Serial
    Replies: 2
    Last Post: - 20th February 2006, 20:57

Members who have read this thread : 1

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