>> But I was wandering what the command ccp1 does in the Pic16f876a chip does.

CCP1 is NOT a command, but a REGISTER within your PIC.

To discover what it does, download and read the Datasheet for your PIC16F876A. A really good place to start is section 8 - Capture/Compare/PWM Modules.