Hallo,
Guck mal hier:

http://www.avr-asm-tutorial.net/avr_de/remote.html

Gruß Jan