May be you should try this:


Code:
IF PortA = $0B THEN TOGGLE PortB.0
WHILE PORTA = $0B  : WEND
This way, your very fast PIC will wait for your very slow old equipment.

If you do not wait in "while" loop, then PIC will loop thousand times until your old equipment changes its state.

-----------------------