Author Topic: PIC32 loosing stability  (Read 3888 times)

0 Members and 1 Guest are viewing this topic.

Offline BartecTopic starter

  • Newbie
  • Posts: 2
PIC32 loosing stability
« on: November 17, 2012, 07:26:12 pm »
My first time here so:

Hi everyone!

From the very beginning:
Got damaged the 3.3 voltage regulator on my board recently (yeach very bad beginning) - the multimeter shows ~6V now. So I switched to powering PIC32MX695F512H from programmer (using PicKit3).
It seems that for some time before shutting power off (well quite long time unfortunately) processor was powered with those 6V BUT:
    - programmer connects to the target and get it`s ID
    - processor starts running and executes a few lines of code (which is sending 1 character via UART - second character comes with errors)
   - then it seems to crash

Is it possible that device is damaged somehow that it can work only for some time (it seems like working about 0.2-0.5 ms)

What else may cause that strange failure? May it be capacitors (damaged after voltage reg. crash)?
Any other ideas?

BTW: I managed once or twice to run the processor and everything seemed to works fine after using hardware reset few times - but it doesn`t seem to work anymore.

Thanks in advance!
 

Offline RCMR

  • Frequent Contributor
  • **
  • Posts: 405
Re: PIC32 loosing stability
« Reply #1 on: November 17, 2012, 08:09:38 pm »
I've had PICs go partially screwy after regulator failures in the past.

Just toss the chip and put a new one in.  That's the quickest and simplest way to verify that this is the problem.
 

Offline LaurenceW

  • Frequent Contributor
  • **
  • Posts: 258
  • Country: gb
    • It's Time, Jim, but not as we know it
Re: PIC32 loosing stability
« Reply #2 on: November 17, 2012, 10:21:40 pm »
Yes, first thing to do is try a new PIC, they are cheap enough. If THAT has the same issues, sprinkle a few supply decoupling caps around the device, make sure that you have tied the reset line high and left no other input lines floating. Still problems? You need to look at your code. Go back to something really simple like a blinking LED (this will prove whether the PIC is basically alive or dead) and work up from there.

Make sure that you have either handled watchdog interrupts correctly, or more simply switched them OFF for now.

In my experience, I've yet to fry a PIC from 6V alone. 12V? Now, that'll do it :(

If you don't measure, you don't get.
 

Offline FlashEF

  • Contributor
  • Posts: 25
  • Country: pl
Re: PIC32 loosing stability
« Reply #3 on: November 18, 2012, 08:35:47 am »
Surely enough, 5V version wouldn't get damaged from 6V, but we are talking about PIC32 that has a 3V3 voltage supply rail. Thanks for the advice, we will try the caps first, and then the controller itself. The code is most likely not the problem, cause it works on an identical test unit...
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8275
Re: PIC32 loosing stability
« Reply #4 on: November 18, 2012, 09:52:25 am »
Very likely you damaged something. The absolute maximum rating from the datasheet is 4V.

The PIC32s are a bit more fragile than the lesser product lines at 5V, because they're made on a smaller process and are designed for lower voltage operation (also means thinner gate oxide). Even if the core survived, it's not much good if the flash hasn't.

Speaking of toughness, the oldest NMOS 8-bit CPUs had absolute maximum ratings of 8V, with normal operation at 5V.

A 3V6 zener across the power rail may help reduce the chances of frying another chip in the future.
 

Offline ptricks

  • Frequent Contributor
  • **
  • Posts: 671
  • Country: us
Re: PIC32 loosing stability
« Reply #5 on: November 18, 2012, 01:30:55 pm »
Over volt a chip and it may appear fine but still be screwed up internally. I had a pic chip that was exposed to 9V,  the chip would still program and work except that port C3 could not be enabled.
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16284
  • Country: za
Re: PIC32 loosing stability
« Reply #6 on: November 18, 2012, 01:59:31 pm »
I had a whole box full of TTL survive an overvoltage of 15V for a few hours. Overvoltage trip did not operate as expected, and it let the full unregulated rail go through. Still was running, just was running "funny". Only one chip died, a PM5406PM3 open collector hex inverter, funny enough a device with a 30V output voltage rating.......
 

Offline FlashEF

  • Contributor
  • Posts: 25
  • Country: pl
Re: PIC32 loosing stability
« Reply #7 on: November 18, 2012, 04:23:39 pm »
Any practical tips on replacing TQFP-64 that has 0603 ceramic caps close to it? I'll be using a hot air station. What should be the starting temperature? Around 250C?
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26906
  • Country: nl
    • NCT Developments
Re: PIC32 loosing stability
« Reply #8 on: November 18, 2012, 08:36:15 pm »
I've set my hot-air station to 360 deg. C which works fine for that kind of jobs.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline ptricks

  • Frequent Contributor
  • **
  • Posts: 671
  • Country: us
Re: PIC32 loosing stability
« Reply #9 on: November 19, 2012, 01:54:07 pm »
If you are using hot air to remove a part near some stuff you don't want to be heated aluminum foil works well. You can build a little barrier over whatever you want to shield to deflect the hot air away.
 

Offline BartecTopic starter

  • Newbie
  • Posts: 2
Re: PIC32 loosing stability
« Reply #10 on: November 19, 2012, 07:35:36 pm »
Thanks for your advice!
Don`t really like the situation but well... that`s how it works :)
Replacing uP and adding zener diode is about to be a priority now.
Can only hope it will work.. some day!
 

Offline FlashEF

  • Contributor
  • Posts: 25
  • Country: pl
Re: PIC32 loosing stability
« Reply #11 on: November 20, 2012, 07:55:59 pm »
Thanks for all the advice, you all were right. Replacing it, together with it's caps worked. The trick with covering stuff around the part with aluminum foil works great as well. Surrounding parts got barely warm. Starting at 360C was perfect as well, overall a quick fix.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf