Hi all I'm building an IR remote light dimmer. I'm in a serious trouble. I'm using a combination of these two in my light dimmer. 1. Zero cross =96 *Using External Interrupt pin (GP2)* 2. IR sensor ( Sony protocol) =96 *General I/O pin (GP0)* I can dim an AC bulb nicely & I can use the Sony protocol to receive a signal nicely. Zero cross detecting via *External Interrupt*. For every 20mS it will automatically go to ISR & update the dim level. The IR routine is in the main menu. The problem is I'm getting a bad output after combining these two. * When I call the IR to detect which key has pressed in the remote due to external interrupt of zero cross it will got ISR while I'm in the middle of IR routine, so all my IR updating stuff getting corrupted. * If I stop GIE before updating the IR routine the zero cross will get corrupted so the output will flicker. So how can I combine these two nicely without affecting each other? I want to do this with PIC 12F675. Thanks for the support -- = Electronics God -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist