Hello Tear,

Using Bruces Code...

TRISA = %00000011
TRISB = %00000000
loop1:
if PORTA.0 = 1 then
PORTB.0 = 1
else
PORTB.0 = 0
endif
goto loop1
end


I removed one one of his code (3rd line from the bottom)

high PORTB.1


I think without this line, you may have what you are looking for...

If Porta is on, PortB is on.... If POrta is off.. POrt b is off...
This also assumes Portb will STAY on until Port A is off. (then PortB will turn off).

Dwayne