With this code the timer works oke.
After i made the last part of the code active the timer is not working oke anymore.
So it looks that
Code: [Select]
attachInterrupt(0, zero_crosss_int, RISING); // Choose the zero cross interrupt # from the table above
has influence on the timer.
You are not being clear. Is it the attachInterrupt() and the triggering of the calculations in the ISR which is influencing the timer, or is it the active Triac management part of the ISR with the delayMicroseconds() and digitalWrite() which is influencing the timer?