This is my old porject for IR controls system.
There are firmware for two devices and PCB design for these boards. Comment in source code in Russian and also in strange encoding (thank for CooCox IDE), maybe I find time and fix comments and event make some design overview.