I would like to trigger interrupts from IR detection on INT0 and INT1 using PD2 and PD3 on a ATMega88.
I've been going through the datasheets, but an still lost on how to actually do this in the code. From my understanding, I will need to set the EIMSK -> 1 for INT0 and INT1, set SREG -> 1, and set EICRA values for the proper edge detection. At this point, I am kind of stuck.
Can someone help work me through the coding? Thank you.