Okay, I have made a few modifications according to some of your recommendat= ions. =A0It all seems to be working in the sim. =A0The only thing left is t= o test it in the real world. =A0I included some of the timer initialization= just to give a slightly better idea. =A0I was surprised how little the ext= ra instructions have affected the runtime. The port shadowing in particular is probably going to help the stability of= the design since there is a very real chance of noise on one of the inputs= from a remote sensor. =A0Thank you all for your suggestions. #include p10f200.inc ; initial vars declaration, proprietary, etc. =A0You aint gonna see it. BeginCountdown =A0 =A0 clrw =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0; Ensur= e our port is in the proper state =A0 =A0 movwf =A0 shadow =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0; before beginn= ing =A0 =A0 movwf =A0 GPIO =A0 =A0 movlw =A0 .2 =A0 =A0 movwf =A0 TimerW =A0 =A0 movlw =A0 .252 =A0 =A0 movwf =A0 TimerE =A0 =A0 movlw =A0 .47 =A0 =A0 movwf =A0 TimerH =A0 =A0 movlw =A0 .245 =A0 =A0 movwf =A0 TimerL Delay5m =A0 =A0 nop =A0 =A0 nop =A0 =A0 nop =A0 =A0 nop =A0 =A0 nop =A0 =A0 nop;e.avi =A0 =A0 decfsz =A0TimerL,f =A0 =A0 goto =A0 =A0Delay5m =A0 =A0 btfss =A0 Beep,DoIBeep =A0 =A0 goto =A0 =A0Delay5m.DecTmrH =A0 =A0 movlw =A0 LED_MASK =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0; Sound a tone to= remind the user that =A0 =A0 xorwf =A0 shadow,W =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0; the door is ope= n. =A0 =A0 movwf =A0 shadow =A0 =A0 movwf =A0 GPIO Delay5m.DecTmrH =A0 =A0 decfsz =A0TimerH,f =A0 =A0 goto =A0 =A0Delay5m =A0 =A0 movf =A0 =A0TimerE,W =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0; Sound tone du= ring 6/256 TimerE iterations =A0 =A0 andlw =A0 b'11111000' =A0 =A0 =A0 =A0 =A0 =A0 ; Throw out the lower= 3 bits. =A0 =A0 xorlw =A0 b'11111000' =A0 =A0 =A0 =A0 =A0 =A0 ; Compare the upper 5= .. =A0 =A0 btfss =A0 STATUS,Z =A0 =A0 goto =A0 =A0Dec5m.DecTmrE =A0 =A0 movlw =A0 1 =A0 =A0 xorwf =A0 Beep,f Dec5m.DecTmrE =A0 =A0 decfsz =A0TimerE,f =A0 =A0 goto =A0 =A0Delay5m =A0 =A0 decfsz =A0TimerW,f =A0 =A0 goto =A0 =A0Delay5m =20 --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .