Seems like there is another bug in the startup code for the Attiny Series 1 Attiny1616.
This snippit of code from mcu_init claims to put the ports into low power mode. That would mean disabling the input buffers.
/* On AVR devices all peripherals are enable from power on reset, this * disables all peripherals to save power. Driver shall enable * peripheral if used */ /* Set all pins to low power mode */ #define PORT_PULLUPEN_bp 3 for (uint8_t i = 0; i < 8; i++) { *((uint8_t *)&PORTA + 0x10 + i) |= 1 << PORT_PULLUPEN_bp; }
What it actually does is enables the pullups on all the ports which is the opposite of low power mode. Correct me if I'm wrong here. I'm getting momentary enabling of all my ports and it seems this is the cause.