Klaus, CCP1 is one of the capture or PWM output pins depending on configuration. In PWM mode it is an output, in CCP mode it effectively becomes a gate input for counting a clock or a counter input itself.
I'm not sure why PWM is suggested at all here and I'm not sure triac control is suitable for producing a variable AC voltage unless chopping parts of the cycles is permissible. If PWM is used, it can only be to either control the phase angle the triac is fired, in which case the waveform will no longer be sinus or it can be used to recreate the entire AC waveform in which case zero crossing isn't necessary.
venkates2218, can you explain which method you are trying to use. From your triac diagram is seems you want to control overall power to a load rather than voltage.
Brian.