just want to be sure that you write
CMCON=5

is puls is declare as BIT VAR.

is by any chance you can post your whole code ??? schematics???

regards