Introduction - If you have any usage issues, please Google them yourself
Use PIC18f452 series of written exercises timer interrupt program, which contains examples of how to enter the SLEEP explanation.
Packet : 85375575tmrsleep.rar filelist
tmrsleep.c