Got it working, added INTCON=7. changed input to PULSIN. Everyting is working well.

OOPS should be INTCON=0 not INTCON=7.