unsigned char int0=0,int1=0; int c=0; void DelayMs(unsigned int count) { // mSec Delay 11.0592 Mhz unsigned int i; while(count) { i = 115; while(i>0) i--; count--; } } void int0_isr (void) interrupt 0 { int0++; // Increment //Always Master(CCAP2H) change & slave(CCAP4H) has same value as Master. if (int0>int1) { DelayMs(500); CCAP2H = 0x73; // 45% Duty Cycle CCAP4H = CCAP2H; // same Duty Cycle } else if (int0int1) { DelayMs(500); CCAP2H = 0x73; // 45% Duty Cycle CCAP4H = CCAP2H; // same Duty Cycle } else if (int0