In SX Microcontrollers, SX/B Compiler and SX-Key Tool, lmolter wrote: Project: PIR motion-controlled (trap, trail, ghost) camera. Night vision camera will take videos when motion is detected. This part works. Problem: Camera goes to sleep after 5 minutes of no activity. I'd like to send a heartbeat (wakeup) pulse every minute to keep the camera awake. Since I haven't been programming the SX is a long while, and I never did really understand interrupts, I am at a loss on how to implement this. First thought is to use an external timer to generate constant 1 minute pulses. I could set on of the RB port pins to generate an interrupt on rising edge change. Second thought is to use RTCC somehow, but I don't really know how that works, either. The external signal seems the simplest solution, even though it adds a component to my layout. But... I don't know how to configure the INTERRUPT statement. If I just code INTERRUPT without any other options, I get a compile error. Any thoughts out there on trapping a long-period signal? I'm just spinning in circles. Larry ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=394191 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)