known incommodious behavior
wolff
Posts: 43
I am driving a relay and every few seconds (during sleep mode) it looses power for just a short time. I realize this is a known glitch. Can anyone recommend a simple fix?
Thanks!!!
·
Post Edited (wolff) : 5/8/2006 8:42:59 AM GMT
Thanks!!!
·
Post Edited (wolff) : 5/8/2006 8:42:59 AM GMT
Comments
Use PAUSE in lieu of SLEEP or NAP, and you won't have the problem.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
If you're ALWAYS driving the relay driver, then probably a loop with 'PAUSE' is what you want to do. 'Sleep' is an ultra-low power mode, which saves a few milli-amps. You're probably driving the relay with much more than that, so saving a few milli-amps is not helping you.
Latch_Relay:
· DO
··· AlarmRelay = IsOn
· LOOP WHILE (alarmBit = 1)
· AlarmRelay = IsOff
· RETURN
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dude... You are all over it! One of Scott Edward publications referred to it as a "glitch." However I will reframe from ever using the "G" word again. From now on it's an "incommodious behavior".
I'm using a BS1 so I don't think I can use a Do Loop.
Thanks for all your help (Seriously!)
J
Latch_Relay:
··AlarmRelay = IsOn
··IF alarmBit = 1 THEN Latch_Relay
· AlarmRelay = IsOff
· RETURN
Forgive me if I sounded defensive, that's not the case.· I just wanted to clarify something that is a known behavior of the underlying processor· -- something that is not a "glitch" as defined by the common usage of that term.· It's important to be clear about these sorts of things so that they're not taken out of context by newcomers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
J