hi i am trying to do a proteus simulation of serial communication of two microcontrollers as shown in the attachment but unable to do it..as the optocoupler connected to it does not work and there is no sign of signal in the TxD pin and the led glows automatically in simulation.
the logic i want to do is i want to send a letter say 'D' serially from microcontroller 1 and if i receive the same in the microcontroller 2 i want the led to glow.
the coding i used is
micro 1:
org 0000h
mov a,#00h
mov p1,a
mov p3,a
halt:
jb p1.0,abb
sjmp halt
abb:
mov TMOD,#20h
mov TH1,#-3
mov SCON,#50h
setb TR1
mov SBUF,#'D'
here: jnb TI,here
ret

micro2:
org 0000h
mov a,00h
mov p1,a
mov p3,a
mov TMOD,#20h
mov TH1,#-3
mov SCON,#50h
setb TR1
clr RI
rpt:jnb RI,rpt
mov a,SBUF
cjne a,44h,next
next:setb p3.1
end
could not find where wrong ???