May be you should try this:
This way, your very fast PIC will wait for your very slow old equipment.Code:IF PortA = $0B THEN TOGGLE PortB.0 WHILE PORTA = $0B : WEND
If you do not wait in "while" loop, then PIC will loop thousand times until your old equipment changes its state.
-----------------------





Bookmarks