Hi,
today I receive a free samples from Microchip and I got a big surprise.My EasyPIC5 development board can not program PIC12f1288 so I can not to try your code.
I have another PIC16f724 with capacitance sensing module But I dont have a working example for him.I try to adjust your code to PIC16f724 but I have a error while compiling.

ASM ERROR symbol not previously defined (TMR1) (0) error 113

When I compiling your code for 12F1288 I dont have this error.