I adopted your code changes because they are a lot more elegant than my hac= k job.=20 I found my problem was because I was using cblock instead of UDATA. I'm sur= prised mplab didn't complain.. But it works as expected now. Thank you for = your assistance! Chas --- On Sep 30, 2013, at 7:01 PM, IVP wrote: >> Thank you, I had a sloppy CLRF INTCON .. I just changed it to >> BCF INTCON,T0IF ... no change. >=20 > Hmmmm >=20 > You don't really have to call delay1 (as is), seems unnecessary to > reload OPTION each time, plus there's its included bank change >=20 > Maybe simplify, just CALL T0_OVFL_WAIT and remove the two > BANKSEL int_delay1. It's possible there's a banksel problem >=20 > Keep this as a separate call, needs using only once >=20 > BANKSEL TMR0 > CLRF TMR0 > CLRF INTCON ;INTCON is in all banks, no need to banksel > BANKSEL OPTION_REG ; Bank1 > MOVLW 0xC3 ; PortB pull-ups are disabled, > MOVWF OPTION_REG > BANKSEL int_delay1 > RETURN >=20 > ;------------- >=20 > delay2 > MOVLW 0x01 > MOVWF int_delay1 > OLOOP > CALL T0_OVFL_WAIT > DECFSZ int_delay1,F > GOTO OLOOP > RETURN >=20 > T0_OVFL_WAIT > BTFSS INTCON, T0IF > GOTO T0_OVFL_WAIT > BCF INTCON,T0IF > RETURN >=20 > Joe > --=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 --=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 .