Quote Originally Posted by elios115
the algorithm is as follows: the pic receives the byte bit by bit through A0. it stores the byte in a register and then output it on port B

the problem is teh code! can anyone help?
Maybe something like this?

SERIN 1,N2400,[“A”],B0 'Wait until the character “A” is received serially
'on Pin1 and put next character into B0
portb=B0

This is on the manual, page 99.

Ioannis