In SX Microcontrollers, SX/B Compiler and SX-Key Tool, mumcs01 wrote: Sorry about the delay. I went on vacatgion. Interesting idea the timing. I gave it a shot. No luck. There is something really weird here. To answer PJ Allens question. Let me simplify it a bit: if rb.1 = 1 then Toggle alarm_enabled do pause 1000 high o_buzzer loop while rb.1 <> 0 endif basicly, if rb.1 switch is HIGH then toggle an LED. The do is a bebounce to wait for rb.1 to go low again before continuing the program. There is something odd here. Ther ehas to be. I'd post the whole program, but its really long. Its so odd becasue I know the hardware works as that if I start a new program and do: setuptime: if rb.1 = 1 then high o_alarmtriac else low o_alarmtriac endif goto Setup_Time ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=394263#m397566 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)