how deep sleep processor, there is still a signal on the interrupt? #923
Replies: 4 comments 4 replies
-
Would need to see code and schematic to comment further. (hand scrawled schematic that is accurate is preferred over a fritzing diagram that has had parts substituted) Presumably there's a pullup on the button pin to keep it from floating and triggering randomly. But whenever it is held low, current will flow through the pullup and button, and that could easily account for 120uA. things with pullups being held low are one of the things that you need to avoid when power consumption is a concern. Also, moved to Q&A section |
Beta Was this translation helpful? Give feedback.
-
If I wake up RISING will I not have 120uA current consumption?
|
Beta Was this translation helpful? Give feedback.
-
success works. processor sleeps at 100nA even though there is still a signal on the interrupt |
Beta Was this translation helpful? Give feedback.
-
Wait why do you want it sleeping during the interrupt? Isn't that what's supposed to wake it up? But again, see what I said above, - only pins 2 and 6 on a port (PA2, PA6, PB2, PB6, etc) are "fully async" and can wake without system clock on rising or falling not just change. The other thing "fully async" pins can do is respond to very brief events (shorter than a clock cycle). If this is your signal, wonderful! If it's not, we call it noise - noise rejection is markedly worse and scenarios to demonstrate this can be contrived easily enough. But that's what filters are for. Also ignore the whole thing about dead time for fully async pins in the datasheet, it's muddled, wrong, and useless. What they meant to say is:
|
Beta Was this translation helpful? Give feedback.
-
I wake up Attiny3226 with a Falling interrupt. I noticed that when I press and release the button it goes into a deep sleep, but when I press and hold the button I get 120uA.
My question is how to put the tiny into a deep sleep despite the low state on interrupt.
I used the PB4 reset pin to wake up. I added a 10k resistor and a 100nF capacitor and it works fine.
can I use interrupt?
Beta Was this translation helpful? Give feedback.
All reactions