Download project details including source code and user guide from the below link
*Please note that I used MPLAB Versio 8.3 to build the code. (Not the latest version). If you have any error while compiling the code, please use an old version of MPLAB or use the compiled HEX files to program.
Extracted from the book - PIC Programming. Author - Mr. Sarath Premachandra.(4S5AS) City & Guild London. Credits goes to him.