receiving IR with the AtMega8 finally works after finding out that the crystal was faulty.