AVR (FLASH) unable to reset if supply voltage falls to 1V...

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have a circuit where the AVR's supply voltage is kept at 1V (when switched off) by drawing parasitic power from an external source (+5V to 1k resistor, through protection diode of AVR input pin).

When power is restored (VCC = 5V), the AVR fails to return out of reset. The BOD or external reset has no effect. The issue was solved by using a 10k resistor, which limited the parasitic power voltage to 0.2V.

Has anyone had a similar experience? Is this a known issue with FLASH?

Regards,
Pieter
http://www.piconomic.co.za

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This can be a tricky situation. First, which AVR model are you using? Those with AVcc need to have both Vcc and AVcc drop below the BOD hysteresis level before a restart will be done. This can be a problem in systems with lightly-loaded analog supplies.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

maybe this is some kind of latch up effect.

I had a similar(?) problem with a simple mosfet. Once powered in reverse the gate was not high ohmic anymore.
(The fet was not dead, but it needed some 100microamperes to the gate to get low impedance. This effect was reproducible.
Driving the FET with >100kOhms failed while driving the gate with <100Ohms worked fine)

The solution to avoid this effect was to place an external schottky diode in parallel with the internal body diode.

Maybe in your application an external schottky diode in parallel to the AVR internal protection diode helps....

Klaus
********************************
Look at: www.megausb.de (German)
********************************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yep, Klaus got it. We had a similar problem in one of our products. Same solution. Turns out that if you don't have enought current (which it sounds like you won't) you won't develop the full 0.2V so this will result in an even better situation for your reset!

Go electric!
Happy electric car owner / builder