I am having some problems with the CCU interrupt I am using the HALT feature to stop all activity on the PWM pins when a capture event occured on ICA. When it happens it should also set the PWM pins to a state defined by FCOA. Unfortunately, it's not working in practice. When I changed the input on ICA, the TICF2A is set, but the PWM signals are still running, and no set to the value defined by FCOA. Another problem is that it recognize only the first interrupt. Has anyone had problem with that in the past? thanks for your help. here is the code for the interrupt initialization and routine: void CCU_interrupt_init(void) { HLTEN = 1; //Enable the Halt CCCRA &= 0xFB; //State in which the PWM channels will go in case of interrupt (via FCOA) CCCRB &= 0xFB; ECCU=1; //Enable CCU interrupt TICR2 |= 0X01;//Enable the input capture channel A interrupt. EA = 1; //Enable the interrupts } void CCU_interrupt_isr(void) interrupt 12 { TIFR2 &= 0xFE; //set the interrupt flag to 0 HLTRN =0; }