I'd like to have an interrupt to execute some code when the level of a pin changes from low to high or reverse. No sleep mode involved, so nothing to wake up. The closest information I found on this topic was this thread. It doesn't help me in finding a solution though. It proposes code that is unclear to me. I don't have PORTC to begin with. Reading the datasheet (sections about CPUINT and PORT) doesn't make me any wiser. And Google doesn't know other sources that might help. Has anybody done that before? Is it possible at all? Is it possible for any pins or just a few special undocumented pins? What code will I have to write for that? What's the ISR name? Will I have a separate interrupt handler for each pin and/or change event or a shared one that first has to find out what just happened?
I find it surprising that there is no information available online but I really couldn't find any. It's a big mystery.
My MCU is an ATtiny1614 (and I'd also be interested in the ATtiny412 which I haven't unpacked yet).