Maybe you can find some tips with the following
http://rentron.com/PicBasic/IR_Chips.htm