Hi every one , I am doing IR based lamp dimmer .My circuit working fine but only issue with IR interrupt and zero crossing interrupt .
What i done is
1) For detecting the zero crossing from the Mains i used the RB1 pin for interrup ( Zero crossing detection).every 10ms it will give the interrupt to MC.
2) For Ir decoding i used RB2 INT2 ( Interrupt pin )
Now I am facing problem with both the interrupt
a) when ever I am pressing the Ir ,light are flickering.
I am guessing bcz both in ISR may be this reason I am getting this type of problem ..
suggest me a solution.
What i done is
1) For detecting the zero crossing from the Mains i used the RB1 pin for interrup ( Zero crossing detection).every 10ms it will give the interrupt to MC.
2) For Ir decoding i used RB2 INT2 ( Interrupt pin )
Now I am facing problem with both the interrupt
a) when ever I am pressing the Ir ,light are flickering.
I am guessing bcz both in ISR may be this reason I am getting this type of problem ..
suggest me a solution.