I'm currently working with the Attiny1616, a very nice little Microcontroller indeed! But I was surprised about the active supply current not matching the values in the datasheet.
On page 585 there is a diagram for power consumption depending on cpu frequency and input voltage:
It should consume about 150uA at 3V and 0.5MHz.
I fused BODCFG = 0b00011100, OSCCFG = 0b00000001, SYSCFG0 = 0b11000110, SYSCFG1 = 0b100
So I'm using 16MHz for the OSC20 and in my code a prescaler divison of CLKCTRL_PDIV_32X_gc, means the CPU is running at 0.5MHz. I could confirm the speed, as all the delays are correct if I set F_CPU to 0.5MHz.
These are my measurements (Otii Arc):
- @3.6V, 0.5MHz: 604uA (should: 180uA) during _delay_ms
- @3V, 0.5MHz: 497uA (should: 150uA) during _delay_ms
- @1.8V, 0.5MHz: 311uA (should: 90uA) during _delay_ms
Deep sleep current is fine and according to spec (around 100nA), so nobody else is consuming the power.
All 20 pins are configured as OUTPUT pins.
Hardware wise I quickly assembled a test board, only the Attiny, 0.1uF and 10uF caps at the supply line and the following schematic:
PB0 ------ [4.7k resistor] ------ PC3 ------ [4.7k resistor] ------ PB1
In my normal setup this is the I2C connection, where I power the bus via PC3 instead of pulling it up to VCC (which reduces leakage currents for some sensors if they are powered down).
Apart from that everything is bulk Attiny.
Do you have any ideas?
Thanks in advance, Timm