vcc monitoring usb

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

hello,

i'm working on self-powered data logger which works with usb and i want it to suspend(power down) according to specification. My problem is that i have to monitor vcc (every 1s for example), but timers are not working in power-down. So my question is should i use interupts from host side to wake it up or use some other sleep mode or maybe some other possibility? This is not all that important, because this is a hobby project, just want to know.

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

There are some sleep modes in which the clock (and timers) continue to run. For many AVRs, that will get you under 100uA.

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

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

Then i'll probably use power-save, because it allows timer2(this is mega16). Thanks Jim.

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

Yet another opportunity should be employing watchdog timer.
Not sure 'bout Mega16, though.