1 minute heartbeat - best way to generate
Larry Molter
Posts: 28
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
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
Comments
Larry