In SX Microcontrollers, SX/B Compiler and SX-Key Tool, lmolter wrote: In an earlier post, I pondered how to produce 1-minute heartbeat pulses via interrupt. I managed to solve that problem, but it produced a common problem -- the 100 calls/sec interrupt screw up delicate timing loops that modulate an IR led. In my project, when motion is detected, I fire a digital camera via its IR remote trigger. The problem is that the IR led is modulated at either 38KHz for Nikon, or 32KHz for Canon, and although some slop is allowed in the timing, the amount of skew introduced by the interrupt calls is not tolerad. All this worked, btw, before I implemented the heartbeat pulse needed to keep one of the other Night Vision cameras awake. So... the obvious question is if there is a way to disable periodic interrupts through code? I'm not familiar enough with the different registers to answer my own question. I do believe that if I used edge-detection interrupts that I could disable them, right? I can still build an outboard circuit that will produce a long period square wave that will cause an interrupt. Any advice out there? Larry ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=395997 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)