BODS on tiny84a

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

The datasheet says:

 

If BOD is disabled by software, the BOD function is turned off immediately after entering the
sleep mode. Upon wake-up from sleep, BOD is automatically enabled again. This ensures safe
operation in case the VCC level has dropped during the sleep period.

 

Does this mean that it does know if the voltage dropped below the BOD during the power down?

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

No.

 

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

Since the CPU is sleeping, a low voltage can not cause the cpu to malfunction, but by reenabling BOD upon wakeup, if voltage is too low for safe cpu operation, the cpu will be held in reset waiting for proper operating voltage.

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

If it goes low enough though (while in power down say), can the contents of memory become corrupted?  I've always thought of the BOD has being an element that ensures the integrity of the processor state/memory.

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

alank2 wrote:
can the contents of memory become corrupted?

Assuming by memory you mean RAM, if the voltage drops below the POR level, regardless if cpu is sleeping or not, a reset will happen, and RAM contents does not matter, as it should be initialized upon startup to known values.

If voltage stays above POR level while sleeping, RAM contents will be preserved.

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

Can the power on reset be thought of as a lower voltage BOD that is always enabled?

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

That's one way to look at it, Yes.

 

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

Thanks Jim!!!