> ;*************Wire 1******************* > Instant call Bank1 > movlw b'11111110' > movwf TRISB > call Bank0 > clrf PORTB > clrf PORTC > movlw b'00000001' > movwf PORTB > movf WIR1S, w > iorwf PORTB, w > iorwf PORTC, w > movwf WIR1S > movlw 0xFF > btfsc PORTC,0 > movwf WIR1C I think you should use shadow registers for the ports to eliminate any possibility of the problem being caused by read-modify-write, particularly, if I understand you, because each pin has a series resistor and there will be cable capacitance -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu