Thanks for the reply,

I tried compare mode operation.I got the output on match.but i didnt get the CCP1IF interrupt on match occurs.