Skip to content

Sleep not shutting down fully #921

@JulesGren

Description

@JulesGren

With the attiny412, I am using set_sleep_mode(SLEEP_MODE_PWR_DOWN); to shut down.

This should reduce the consumption from ~10mA to <1mA (should be in the order of 200uA)

However when doing so it actually reduces from ~10mA to 3.5mA the circuit comprises one attiny 412, with a 20k pull down resistor (on pa_2) with an open switch, supply is 5V and I have tried it with and without the 100nf cap across vcc & vdd - the cap makes no difference. (As does removing the pull down resistor - although a finger touch is sufficient to trigger the operation)

I have tried SLEEP_MODE_STANDBY and this also gives ~3.5mA.

So it looks like SLEEP_MODE_STANDBY and SLEEP_MODE_PWR_DOWN are identical.

Example code attached - i have tried a number of options to achieve this, but whichever method it gives the same current.

main1.cpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions