i want to conect 2 PICs by using USART port
the transmitter one is pic16F84 and the reciever one is
pic16f877

for TX the codes are

INCLUDE "modedefs.bas"
trisb = %00000000
main:
serout portb.1,T9600, [8] ; send the number 8
goto main



for RX the codes are
b var byte

start :

hserin [b] ; recieve number 8 on the RX port

serout 1,2,[254,1]
pause 2
serout 1,2,[#b] ; view the number 8 on a serial LCD
pause 100
goto start

the problem is in the RX side i don't recieve the correct number
so what is wrong with codes ??

i used 2 pic16f877 ad i used HSEROUT and HSERIN and there is no
problem but i wanted to use different PICs this time
but i got wrong result