Open PM04290 opened 2 months ago
A lot of information about the sleep modes can be found here: https://github.com/SpenceKonde/megaTinyCore/blob/master/megaavr/extras/PowerSave.md Since you are using an ATtiny3216 you have to make sure that you disable input buffer and enable the internal pull-ups for pins on PORTC as well. If you want to reduce the power consumption even more, then you should replace the delay(100) with another timer (RTC) and have it sleep for that time period.
@SpenceKonde i read somewhere that you plan to investigate for Sleep power saving. some remarks to help you in this way :
If hardware have floating input, put them in INPUT_PULLUP have no (signifiant) effect, the only way to stop consumption is to desactivate input
PORTA.PIN0CTRL = PORT_ISC_INPUT_DISABLE_gc;
Exemple on ATtiny1616 with all pins floating, in power off sleep mode i have 0.1µA
BUT, it's imposible to go back with friendly function, like pinMode, when wakeup.
if you write a dedicated library for power saving, you may create function to manage pins easly
Hello, I use new ATtinys since few weeks (ATtiny84 before, without problem) and i need to have a minimum consumption in sleep mode. After documention reading, i wrotte the little code below for ATTiny3216 and i have 520µA in sleep mode, too far from AVR datasheet (5µA) I'am on 5Vdc, 1MHz internal, no BOR, no millis()
I found a few rare posts that talk about the problem but none solve my problem; any idea?