Use Serin to put a byte into 'var' ; If you don't use an RS232 level converter, you will need to do it with the Serin statement. Check the manual.

PortB = var
high PortA.0