This article from Radosław Kwiecień’s website shows how to decode RC5 IR signals from a remote control using the 16-bit Timer1 and INT0 external interrupt input in the ATtiny2313 Atmel AVR device. All code in assembly in available in a compressed file.
