499
// Interrupt Service Routine for CCP1 void __interrupt() ISR() { if (CCP1IF) { // Toggle The Output Pin to generate a square wave RC4 = ~RC4; // Clear The Interrupt Flag Bit CCP1IF = 0; // Reset the Timer1 value TMR1 = 0; } }