According to the encoding format for infrared remote control chip BA5104,Discussion the ATmega16 on AVR MCU software decodes it using two methods: the methods of the external interrupt decoding and the input capture function decoding.Elaborated on the ideas of the two decoding methods in detail,and give the corresponding decoding interrupt service routines.Analysis of the advantages and disadvantages of the two decoding methods,draw a conclusion: the input capture decoding method is more efficient than the external interrupt method,work out of remote control code more stable and reliable.