There is a dimmer circuit (gradateur in french) with IR funcionalities on this page: **broken link removed**
But it's for Pic16F84 and i think it only has the hex not an asm.
Anyway it's a good guide i think
See more information in the following address (maybe usefull for You):
h**p://www.zilog.com/docs/docs.asp?FAM=226,225,217,216,215,214,218,219,220,231,230,205,224,206,203,200,227,213,228,229,232,233,234&DT=13,23
.
This schematic one got me thinking on doing one too
Just wondering what is D2 with value 5.6U is? A zener,a normal diode , a special diode?
The rest of the circuit is very straitforward!